ID:               48811
 Comment by:       ct at swin dot edu dot au
 Reported By:      ct at swin dot edu dot au
 Status:           No Feedback
 Bug Type:         PHP options/info functions
 Operating System: Red Hat Enterprise Linux 5
 PHP Version:      5.3.0
 New Comment:

--- php_ini.c-orig      2009-07-06 16:04:43.000000000 +1000
+++ php_ini.c   2009-07-06 15:58:32.000000000 +1000
 -795,7 +795,7 @@
                while ((ptr = strchr(ptr, DEFAULT_SLASH)) != NULL) {
                        *ptr = 0;
                        /* Search for source array matching the path
from configuration_hash */
-                       if (zend_hash_find(&configuration_hash, path,
path_len, (void **) &tmp) == SUCCESS) {
+                       if (zend_hash_find(&configuration_hash, path,
strlen(path) + 1, (void **) &tmp) == SUCCESS) {
                               
php_ini_activate_config(Z_ARRVAL_P(tmp), PHP_INI_SYSTEM,
PHP_INI_STAGE_ACTIVATE TSRMLS_CC);
                        }
                        *ptr = '/';


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

[2009-12-08 01:00:01] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

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

[2009-12-02 00:06:09] ct at swin dot edu dot au

That pastebin.com entry was set to expire after 1 month.

I've uploaded it again

http://pastebin.com/f45a38211

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

[2009-11-30 19:38:01] j...@php.net

There is no patch there. If it's simple and not very long, add it here
as comment instead. 

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

[2009-07-06 06:26:40] ct at swin dot edu dot au

Description:
------------
A php.ini file with directives in a PATH section do not get applied for
subdirectories in the defined path.

For example

[PATH=/vhost/www.example.com/dir1]

will work for scripts in /vhost/www.example.com/dir1, but not
/vhost/www.example.com/dir1/dir2.

I have fixed this on my system using the following patch
http://pastebin.com/m7e79576f








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


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

Reply via email to