Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions reference/phar/Phar/extractTo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@
set to true to enable overwriting of files.
This method is similar to <function>ZipArchive::extractTo</function>.
</para>

<warning>
<simpara>
Extraction follows any existing symlinks in the target
<parameter>directory</parameter>. If there is a symlink to some other
directory, files may be extracted outside of the desired location; if
there is a symlink to a file, the target of the symlink will be
overwritten when <parameter>overwrite</parameter> is true.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
overwritten when <parameter>overwrite</parameter> is true.
overwritten when <parameter>overwrite</parameter> is true, or created
if it does not exist, whatever the value of <parameter>overwrite</parameter>.

</simpara>
</warning>
</refsect1>

<refsect1 role="parameters">
Expand Down
10 changes: 10 additions & 0 deletions reference/phar/PharData/extractTo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@
set to true to enable overwriting of files.
This method is similar to <function>ZipArchive::extractTo</function>.
</para>

<warning>
<simpara>
Extraction follows any existing symlinks in the target
<parameter>directory</parameter>. If there is a symlink to some other
directory, files may be extracted outside of the desired location; if
there is a symlink to a file, the target of the symlink will be
overwritten when <parameter>overwrite</parameter> is true.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
overwritten when <parameter>overwrite</parameter> is true.
overwritten when <parameter>overwrite</parameter> is true, or created
if it does not exist, whatever the value of <parameter>overwrite</parameter>.

</simpara>
</warning>
</refsect1>

<refsect1 role="parameters">
Expand Down
Loading