From:             schwarz at power-netz dot de
Operating system: linux 2.4.32
PHP version:      5.1.2
PHP Bug Type:     CGI related
Bug description:  php.ini not found in scriptdirectory see Bug #33882

Description:
------------
php 5.1.2 does not search in /home/user/public_html/xxx/
for the php.ini if the script lies i.e. here 
/home/user/public_html/xxx/script.php

Same as bug #33882 from 2005

Notes:

We have renamed the php-cgi.ini to php5-cgi.ini to 
be able to use php4 and php5 on the same system.
Source has been changed since 5.0.0 and worked up to/including  
5.0.3 without any problems.


Expected result:
----------------
bash-2.04# pwd

/home/benderircde/public_html               

bash-2.04# strace php5 /home/benderircde/public_html/php5/info.php 2>&1 |
grep php5-cgi.ini

open("/home/benderircde/public_html/php5/php5-cgi.ini", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/local/apache/conf//php5-cgi.ini", O_RDONLY) = 3
lstat64("/usr/local/apache/conf/php5-cgi.ini", {st_mode=S_IFREG|0644,
st_size=25282, ...}) = 0
<tr><td class="e">Configuration File (php.ini) Path </td><td
class="v">/usr/local/apache/conf/php5-cgi.ini </td></tr>


Actual result:
--------------
bash-2.04# pwd

/home/benderircde/public_html               

bash-2.04# strace php5 /home/benderircde/public_html/php5/info.php 2>&1 |
grep php5-cgi.ini

open("/home/benderircde/public_html/php5-cgi.ini", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/local/apache/conf//php5-cgi.ini", O_RDONLY) = 3
lstat64("/usr/local/apache/conf/php5-cgi.ini", {st_mode=S_IFREG|0644,
st_size=25282, ...}) = 0
<tr><td class="e">Configuration File (php.ini) Path </td><td
class="v">/usr/local/apache/conf/php5-cgi.ini </td></tr>


-- 
Edit bug report at http://bugs.php.net/?id=36716&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=36716&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): 
http://bugs.php.net/fix.php?id=36716&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=36716&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=36716&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=36716&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=36716&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=36716&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=36716&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=36716&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=36716&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=36716&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=36716&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=36716&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=36716&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=36716&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=36716&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=36716&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=36716&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=36716&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=36716&r=mysqlcfg

Reply via email to