ID:               50374
 User updated by:  tom_borgo at hotmail dot com
 Reported By:      tom_borgo at hotmail dot com
 Status:           Open
 Bug Type:         Scripting Engine problem
 Operating System: XP SP3
 PHP Version:      5.3.1
 New Comment:

Just a comment about the [PATH] section
It is said in http://php.net/ini.sections that directive in PATH
section overide custom and runtime ini directives. So I think it is in
fact normal that .user.ini don't change the display_errors flag.
But .user.ini are not parsed if [PATH] section are in the main php.ini
for other directory

Ex:
[PATH=/www2/]
display_errors = 1

/www/.user.ini is not more taken into account !
If i remove the PATH section (i put it inthe end of my php.ini),
.user.ini is taken into account.
Really strange...


Previous Comments:
------------------------------------------------------------------------

[2009-12-03 15:27:27] tom_borgo at hotmail dot com

Description:
------------
Configuration:
WinXP SP3 Fr, Apache 2.2 (winnt), PHP 5.3.1 (but problem is in 5.3.0
too).
PHP: NTS (tested with VC6, VC9 and VC8 version from ZendServer)
Used in CGI mode

.user.ini are not parsed for script in subdirectory of the .user.ini.
Sould be as it should works like .htaccess.

Second problem, if php.ini as a [PATH=/path/] section, /path/.user.ini
are no more parsed.






Reproduce code:
---------------
Ex:
.user.ini is display_errors = 0 (i try with Off, "Off", "0", same)
main php.ini is display_errors = 1

/www/.user.ini
/www/administrator/phpinfo.php (with <?php phpinfo();?>)

PHP Info, in /www/administrator/, gives display_errors = 1, but should
be 0 as it is defined in the www/.user.ini (should be taken in the
subdirectory, like .htaccess)


Second strange problem:
if in php.ini there is:

[PATH=/www/]
display_errors = 1

In this case a phpinfo in /www/ give display_errors = 1, even if
.user.ini in /www/ is configured display_errors = 0.


Expected result:
----------------
Expected to work like .htaccess for subdirectory.
Expected to work even with a [PATH] section for the directory is
defined (.user.ini should be prioritary to the [PATH] section).

Actual result:
--------------
Explained in the code section.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=50374&edit=1

Reply via email to