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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
16 + 36 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Apr 25 14:01:31 2024 UTC