[PHP-DEV] Bug #12744 Updated: Command line option -c failing
ID: 12744 Updated by: sander Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Closed Bug Type: PHP options/info functions Operating System: PHP Version: 4.0.6 New Comment: No feedback. Closing. Previous Comments: [2001-08-15 03:19:07] [EMAIL PROTECTED] Works for me with latest CVS so it seems to have been fixed. Try a snapshot: http://snaps.php.net/ --Jani [2001-08-14 18:49:56] [EMAIL PROTECTED] 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 this bug report at http://bugs.php.net/?id=12744edit=1 -- 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]
[PHP-DEV] Bug #12744 Updated: Command line option -c failing
ID: 12744 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: PHP options/info functions Operating System: PHP Version: 4.0.6 New Comment: Works for me with latest CVS so it seems to have been fixed. Try a snapshot: http://snaps.php.net/ --Jani Previous Comments: [2001-08-14 18:49:56] [EMAIL PROTECTED] 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 this bug report at http://bugs.php.net/?id=12744edit=1 -- 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]