ID: 41192 User updated by: martin at itmission dot com Reported By: martin at itmission dot com -Status: Feedback +Status: Open Bug Type: PHP options/info functions Operating System: Windows Server 2003 PHP Version: 5.2.1 Assigned To: dmitry New Comment:
I downloaded the newest Win32 Snapshot from snaps.php.net: php5.2 (zip) (9.5M) Built On: Apr 26, 2007 08:30 GMT In this version of PHP (5.2.2RC2-dev), Per Directory Values do not work at all. My phpinfo page shows display errors: off for both sites. When I roll back to PHP-5.2.1, it works for the first website in the registry, and with PHP-5.2.0, it works for both of them. Previous Comments: ------------------------------------------------------------------------ [2007-04-26 11:05:39] [EMAIL PROTECTED] The bug should be already fixed. Could you check snapshot from http://snaps.php.net ------------------------------------------------------------------------ [2007-04-26 03:09:02] martin at itmission dot com I am assuming that it has something to do with the massive change to registry.c between 5.2.0 and 5.2.1 changelogged as "implemented registry cache that prevent registry lookup on each request. In case of modification of corresponding registry-tree PHP will reload it automatic". Perhaps something in the way it's being cached is not working properly. The simpler code of 5.2.0 works as expected (and it hits the registry with every request, but I can live with that). ------------------------------------------------------------------------ [2007-04-26 02:13:08] martin at itmission dot com Possibly noteworthy, the exact same configuration works fine in PHP 5.2.0. ------------------------------------------------------------------------ [2007-04-26 01:41:12] martin at itmission dot com I understand that I was wrong to try to make it work with auto_prepend_file. When I remove auto_prepend_file and specify only display_errors => on (PHP_INI_ALL), and change my scripts to <?php phpinfo(); ?>, www1 shows Display Errors: On, and www2 shows Display Errors: off. Deleting www1 or renaming it to www3 causes www2 to show Display Errors: on. When I create a fake error, like trying to open a nonexistent file, www1 displays the error, while www2 does not. ------------------------------------------------------------------------ [2007-04-25 20:49:10] [EMAIL PROTECTED] As documented in http://php.net/configuration.changes the registry keys do not work with PHP_INI_PERDIR ini values. You can see which ini value category it belongs to at: http://php.net/manual/en/ini.php#ini.list Only those marked PHP_INI_USER or PHP_INI_ALL will work. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/41192 -- Edit this bug report at http://bugs.php.net/?id=41192&edit=1