At 17:18 11.02.2003, Ilia Alshanetsky wrote:
iliaa Tue Feb 11 11:18:43 2003 EDT

Modified files:
/php4/sapi/cli php_cli.c
Log:
Added -H option to CLI binary. This option can be used to hide any arguments
including the script name passed to the CLI binary.

Why will i hide command line arguments from command line, does this make sense?

@@ -844,6 +849,14 @@
                }
                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;
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



--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to