|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42104 Configuration file path not respected
Submitted: 2007-07-25 16:08 UTC Modified: 2007-07-25 20:03 UTC
From: kit at reapermini dot com Assigned:
Status: Closed Package: *Configuration Issues
PHP Version: 5.2.3 OS: OS X Server 10.3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: kit at reapermini dot com
New email:
PHP Version: OS:


 [2007-07-25 16:08 UTC] kit at reapermini dot com
Configuring with and without --with-config-file-path, the resulting 
library doesn't see a php.ini file in the path expected by phpinfo().

Compiled from 5.2.3 release branch.

Reproduce code:
./configure --prefix=/usr/local/php5 --with-apxs=/usr/sbin/apxs --with-iconv=/usr --with-openssl=/usr --with-zlib=/usr --with-mysql=/usr/local/mysql --enable-cgi --with-curl=/usr/local/php --with-mcal=/usr/local/php --with-mcrypt=/usr/local --with-mhash=/usr/local/php --with-pdflib=/usr/local/php --with-expat-dir=/usr/local/php --with-gettext=/usr/local/php --with-dom=/usr/local/php --with-dom-xslt=/usr/local/php --with-dom-exslt=/usr/local/php --with-xslt-sablot=/usr/local/php --with-mime-magic=/usr/local/php/etc/magic.mime --with-mssql=/usr/local/php --enable-xslt --with-ldap --with-xml --with-xmlrpc --with-iodbc=/usr --enable-sockets --enable-trans-sid --enable-exif --enable-wddx --enable-ftp --enable-mbstring --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-freetype-dir=/usr --with-t1lib=/usr/local --with-tiff-dir=/usr/local/php

This config arg resulted in a good binary that runs, but won't see the php.ini for anything.  

Actual result:
From the phpinfo output:

Configuration File (php.ini) Path	/usr/local/php5/lib
Loaded Configuration File	(none)

The php.ini file is located at /usr/local/php5/lib/php.ini, has global 
read permissions, but is not found by the module.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-07-25 16:33 UTC] kit at reapermini dot com
Same config arg, compiling current cvs snap (php5.2-200707251430) fixes 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jul 20 06:01:29 2024 UTC