Bug #12744: Command line option -c failing
| From: | ron at dmscontrol dot com | Date: | Tue, 14 Aug 2001 22:49:56 +0000 |
| Subject: | Bug #12744: Command line option -c failing | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-63183@lists.php.net to get a copy of this message | ||
From: ron@dmscontrol.com
Operating system:
PHP version: 4.0.6
PHP Bug Type: PHP options/info functions
Bug description: Command line option -c failing
In file sapi/cgi/cgi_main.c
on line 400 the ini search path is set from the code:
if (php_module_startup(&cgi_sapi_module)==FAILURE) {
return FAILURE;
}
but the actual -c option is not read until line 442 from the code:
if (!cgi) {
while ((c=ap_php_getopt(argc, argv, OPTSTRING))!=-1) {
...
}
...
}
Once I moved the code from line 400 after the -c option was read, it worked
prefectly.
--
Edit bug report at: http://bugs.php.net/?id=12744&edit=1