From: admin at marcelaraujo dot me
Operating system: Centos 6.3 64bits
PHP version: 5.4.9
Package: Unknown/Other Function
Bug Type: Bug
Bug description:Config file path doesn't work
Description:
------------
Hi guys
I've built the PHP 5.4.9 source code but the PHP won't find php.ini in the
/etc
folder.
After I compile the PHP 5.4.8 and everything runs fine.
Test script:
---------------
./configure --enable-fpm --with-libdir=lib64 --prefix=/usr/local
--with-layout=PHP --with-pear --with-apxs2
--with-fpm-user=www-data --with-fpm-group=www-data --enable-debug
--with-openssl --with-kerberos --with-zlib
--enable-calendar --with-curl --with-curlwrappers --enable-exif
--enable-ftp --with-gd --with-jpeg-dir=/usr
--with-png-dir=/usr --with-vpx-dir=/usr --with-freetype-dir=/usr
--with-t1lib --enable-exif --enable-gd-native-ttf
--enable-gd-jis-conv --with-gettext --with-gmp --with-mhash --enable-intl
--enable-mbstring --with-mcrypt
--with-mysql --with-mysqli --enable-pcntl --with-pdo-mysql --with-pspell
--with-libedit --with-readline
--enable-shmop --with-snmp --enable-soap --enable-sockets --enable-sysvmsg
--enable-sysvshm --with-xsl --enable-zip
--with-pear --enable-zend-signals --enable-maintainer-zts --enable-calendar
--enable-bcmath --with-gmp --enable-exif
--with-mcrypt --with-mhash --with-zlib --with-bz2 --enable-zip --enable-ftp
--enable-mbstring --with-iconv
--enable-intl --with-icu-dir=/usr --with-gettext --with-pspell
--enable-sockets --with-openssl --with-curl
--with-curlwrappers --with-gd --enable-gd-native-ttf --with-jpeg-dir=/usr
--with-png-dir=/usr --with-zlib-dir=/usr
--with-xpm-dir=/usr --with-vpx-dir=/usr --with-freetype-dir=/usr
--with-t1lib=/usr --with-libxml-dir=/usr
--with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd
--enable-soap --with-xmlrpc --with-xsl
--with-tidy=/usr --with-readline --enable-pcntl --enable-sysvshm
--enable-sysvmsg --enable-shmop
--enable-memory-limit --with-config-file-path=/etc
--with-config-file-scan-dir=/etc/php/conf.d
--with-apxs2=/usr/sbin/apxs && make && make install
Expected result:
----------------
Configuration File (php.ini) Path
-> /etc
Loaded Configuration File
-> /etc/php.ini
Scan this dir for additional .ini files
-> /etc/php/conf.d
Actual result:
--------------
Configuration File (php.ini) Path
-> /etc
Loaded Configuration File
-> none
Scan this dir for additional .ini files
-> /etc/php/conf.d
--
Edit bug report at https://bugs.php.net/bug.php?id=63611&edit=1
--
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=63611&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=63611&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=63611&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=63611&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=63611&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=63611&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=63611&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=63611&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=63611&r=support
Expected behavior: https://bugs.php.net/fix.php?id=63611&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=63611&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=63611&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=63611&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63611&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=63611&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=63611&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=63611&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63611&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=63611&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=63611&r=mysqlcfg