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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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

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 Mar 28 17:01:29 2024 UTC