mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 08:28:54 +00:00
Fix GH-1280: The first arg after -f <filename> does not need to be --
This commit is contained in:
parent
84eaa4850b
commit
1dd897816d
1 changed files with 0 additions and 13 deletions
|
@ -506,13 +506,6 @@ string(15) "doesntmakesense"
|
||||||
<option>-f</option> is optional and may be omitted - providing just
|
<option>-f</option> is optional and may be omitted - providing just
|
||||||
the filename to execute is sufficient.
|
the filename to execute is sufficient.
|
||||||
</para>
|
</para>
|
||||||
<note>
|
|
||||||
<para>
|
|
||||||
To pass arguments to a script, the first argument must be
|
|
||||||
<literal>--</literal>, otherwise PHP will interpret them as PHP
|
|
||||||
options.
|
|
||||||
</para>
|
|
||||||
</note>
|
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
|
@ -1046,12 +1039,6 @@ $ php -f my_script.php
|
||||||
restriction on which files can be executed; in particular, the filename
|
restriction on which files can be executed; in particular, the filename
|
||||||
is not required have a <literal>.php</literal> extension.
|
is not required have a <literal>.php</literal> extension.
|
||||||
</para>
|
</para>
|
||||||
<note>
|
|
||||||
<para>
|
|
||||||
If arguments need to be passed to the script when using
|
|
||||||
<option>-f</option>, the first argument must be <literal>--</literal>.
|
|
||||||
</para>
|
|
||||||
</note>
|
|
||||||
</listitem>
|
</listitem>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
|
|
Loading…
Reference in a new issue