php.net |  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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ron at dmscontrol dot com
New email:
PHP Version: OS:

 

 [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.

Patches

Pull Requests

History

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

--Jani

 [2001-10-02 04:47 UTC] sander@php.net
No feedback. Closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 02:01:29 2024 UTC