php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #30544 conflicted -C descriptions
Submitted: 2004-10-23 21:03 UTC Modified: 2004-10-28 11:29 UTC
From: terrafrost at gmail dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 4.3.9 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: terrafrost at gmail dot com
New email:
PHP Version: OS:

 

 [2004-10-23 21:03 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-10-28 11:29 UTC] vrana@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Oct 05 19:01:27 2024 UTC