Fix GH-1280: The first arg after -f <filename> does not need to be --

This commit is contained in:
Christoph M. Becker 2021-12-30 16:50:39 +01:00
parent 84eaa4850b
commit 1dd897816d
No known key found for this signature in database
GPG key ID: D66C9593118BCCB6

View file

@ -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>