Re: cvs: php4 /sapi/cli php_cli.c
| From: | Ilia A. | Date: | Tue, 11 Feb 2003 20:14:13 +0000 |
| Subject: | Re: cvs: php4 /sapi/cli php_cli.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-18679@lists.php.net to get a copy of this message | ||
On February 11, 2003 02:41 pm, Marcus Börger wrote:
> Why will i hide command line arguments from command line, does this make
> sense?
This is there primarily for daemon and other long term PHP process that run on
shared servers and accept command line arguments. To prevent other users from
seeing those arguments you hide them as well as the script name for security
reasons (information may be sensitive, full path to configuration file,
etc...).
The changes take effect after all php work with argv/argc is done so that the
real data is avaliable within the PHP script. The only purpose of this code
is to hide argv/argc from being visible via the ps command.
Ilia