Re: cvs: php4 /sapi/cli php_cli.c
| From: | (Marcus Börger) | Date: | Tue, 11 Feb 2003 19:41:17 +0000 |
| Subject: | Re: cvs: php4 /sapi/cli php_cli.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-18678@lists.php.net to get a copy of this message | ||
At 17:18 11.02.2003, Ilia Alshanetsky wrote:
Why will i hide command line arguments from command line, does this make sense?iliaa Tue Feb 11 11:18:43 2003 EDTModified files:/php4/sapi/cli php_cli.cLog: Added -H option to CLI binary. This option can be used to hide any arguments including the script name passed to the CLI binary.
@@ -844,6 +849,14 @@Are you sure this is correct? I mean the variables are registered in php_request_startup(TSRMLS_C)==FAILURE) above your change. And even if it works you shall never ever mess around with the stuff send be main (erm upd i did my self already - but see code above your change). regards marcus} CG(start_lineno) = lineno; *arg_excp = arg_free; /* reconstuct argv */++ if (hide_argv) { + int i; + for (i = 1; i < argc; i++) { + memset(argv[i], 0, strlen(argv[i])); + } + }+if (no_headers) { SG(headers_sent) = 1; SG(request_info).no_headers = 1;