]> granicus.if.org Git - php/commitdiff
- Fixed bug #48811 (Directives in PATH section do not get applied to subdirectories)
authorJani Taskinen <jani@php.net>
Sat, 16 Jan 2010 21:01:12 +0000 (21:01 +0000)
committerJani Taskinen <jani@php.net>
Sat, 16 Jan 2010 21:01:12 +0000 (21:01 +0000)
NEWS
main/php_ini.c

diff --git a/NEWS b/NEWS
index 80d5bf4449a06dab276d5613a1493a7783d9e846..b711fd169fa975da3a401cf9e2a96dc819f2a042 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -28,6 +28,8 @@ PHP                                                                        NEWS
 - Fixed bug #50576 (XML_OPTION_SKIP_TAGSTART option has no effect). (Pierrick)
 - Fixed bug #49560 (oci8: using LOBs causes slow PHP shutdown). (Oracle Corp.)
 - Fixed bug #49463 (setAttributeNS fails setting default namespace). (Rob)
+- Fixed bug #48811 (Directives in PATH section do not get applied to
+  subdirectories). (Patch by: ct at swin dot edu dot au)
 - Fixed bug #48590 (SoapClient does not honor max_redirects). (Sriram)
 - Fixed bug #48190 (Content-type parameter "boundary" is not case-insensitive
   in HTTP uploads). (Ilia)
index cd4341be834cbb806cfb9dfeb58ff7813b4bdbde..e6c71a14d4e3d51fcfd6fba2a5a29533399997fc 100644 (file)
@@ -807,7 +807,7 @@ PHPAPI void php_ini_activate_per_dir_config(char *path, uint path_len TSRMLS_DC)
                while ((ptr = strchr(ptr, '/')) != 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 = '/';