]> granicus.if.org Git - php/commitdiff
- Fixed bug #48811 (Directives in PATH section do not get applied to subdirector
authorPierre Joye <pajoye@php.net>
Wed, 3 Feb 2010 20:13:18 +0000 (20:13 +0000)
committerPierre Joye <pajoye@php.net>
Wed, 3 Feb 2010 20:13:18 +0000 (20:13 +0000)
main/php_ini.c

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 = '/';