| vrana@php.net 2004-10-28, 8:56 am |
| ID: 30544
Updated by: vrana@php.net
Reported By: terrafrost at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Documentation problem
PHP Version: 4.3.9
New Comment:
This note is written in "The CLI SAPI does not change the current
directory to the directory of the executed script" part. So it's right
- you can achieve this CLI behavior in CGI with -C switch.
I changed "the CLI SAPI" to "this CLI SAPI" for your convenience.
Previous Comments:
------------------------------------------------------------------------
[2004-10-23 21:03:30] terrafrost at gmail dot com
Description:
------------
The portion of the PHP manual entitled "Using PHP from the command
line" states that "The CGI SAPI supports the CLI SAPI behaviour by
means of the -C switch when run from the command line.":
http://us2.php.net/features.commandline
However, "php -h" says of the -C switch, "Do not chdir to the script's
directory".
Further, running php -Cr "echo 'test';" results in an error saying that
the -r switch doesn't exist, even though it should if it were acting
like the cli version.
So.. the doc would appear to be wrong.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30544&edit=1
|