|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12744 Command line option -c failing
Submitted: 2001-08-14 18:49 UTC Modified: 2001-10-02 04:47 UTC
From: ron at dmscontrol dot com Assigned:
Status: Closed Package: PHP options/info functions
PHP Version: 4.0.6 OS:
Private report: No CVE-ID: None
 [2001-08-14 18:49 UTC] ron at dmscontrol dot com
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-15 03:19 UTC]
Works for me with latest CVS so it seems to have been
fixed. Try a snapshot:


 [2001-10-02 04:47 UTC]
No feedback. Closing.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Jul 27 13:01:25 2021 UTC