php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40963 --with-config-file-path is not respected
Submitted: 2007-03-30 20:23 UTC Modified: 2007-04-02 10:39 UTC
From: spam at 2xlp dot com Assigned:
Status: Not a bug Package: *Compile Issues
PHP Version: 5.2.1 OS: Mac OSX 10.4.9
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: spam at 2xlp dot com
New email:
PHP Version: OS:

 

 [2007-03-30 20:23 UTC] spam at 2xlp dot com
Description:
------------
on osx 10.4.x and php 5.1.x > 5.2.x

--with-config-file-path results in a binary that lists the custom path 
in phpinfo(), but does not actually read the custom path. nor does it 
seem to read the default config file path either -- it effectively 
disables the config file 

Reproduce code:
---------------
1) ./configure --with-config-file-path=/usr/local/lib/php5.2.0.ini 

2) view phpinfo(), note that '/usr/local/lib/php5.2.0.ini' appears as the config file path

3) load modules or disable php in /usr/local/lib/php5.2.0.ini , restart apache/fcgi ,  note that nothing in the ini is respected 

4) rename /usr/local/lib/php5.2.0.ini to /usr/local/lib/php.ini , restart apache/fcgi ,  note that nothing in the ini is respected


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-04-02 10:39 UTC] sniper@php.net
Having had the same "bug" myself, I can assure you it's not a bug.
Notice the name of the configure option, especially the last word:
 
  --with-config-file-path

PATH is not same as full-path. Using option

  --with-config-file-path=/usr/local/lib/php5.2.0.ini 

will result in setting the ini-PATH to: /usr/local/lib/php5.2.0.ini/

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 14:01:34 2025 UTC