1. I made a patch to solve a minor problem: php.ini loading was done before
-c <path> command line options processing. You will find a patch bellow. I'd
like someone to review and commit if it's Ok.

2. Will I have problems if I enable command line options processing in CGI
mode. My php binary is installed outside of cgi-bin directory and is being run
with suexec wrapper? If not, then I will create a patch to add
configure option which will allow command line processing in cgi mode. Will
you argue?

Please CC: your replies to my e-mail ([EMAIL PROTECTED]), I will greatly appreciate

--- php-4.0.5/sapi/cgi/cgi_main.c       Wed Mar  7 16:24:12 2001
+++ php-4.0.5.fix/sapi/cgi/cgi_main.c   Fri May 18 14:48:27 2001
@@ -413,10 +413,6 @@
        setmode(_fileno(stderr), O_BINARY);             /* make the stdio mode be 
binary */

-       if (php_module_startup(&cgi_sapi_module)==FAILURE) {
-               return FAILURE;
-       }
        /* Make sure we detect we are a cgi - a bit redundancy here,
           but the default case is that we have to check only the first one. */
        if (getenv("SERVER_SOFTWARE")
@@ -470,6 +466,10 @@
                ap_php_optind = orig_optind;
                ap_php_optarg = orig_optarg;
+       }
+       if (php_module_startup(&cgi_sapi_module)==FAILURE) {
+               return FAILURE;

 #ifdef ZTS

Oleg Sharoiko.
Software and Network Engineer
Computer Center of Rostov State University.

PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to