]> granicus.if.org Git - php/commitdiff
Fix the problem Sascha reported, about extension_dir
authorZeev Suraski <zeev@php.net>
Sun, 5 Nov 2000 15:03:41 +0000 (15:03 +0000)
committerZeev Suraski <zeev@php.net>
Sun, 5 Nov 2000 15:03:41 +0000 (15:03 +0000)
@- Fixed a bug that prevented a changed compile-time extension_dir from
@  affecting modules that were loaded via php.ini (Zeev)

ext/standard/dl.c

index e2b37ff2e24b8dc6ab092d99bd12ca3290b5a290..5122f890c571cd044b043a03b16f0d5983246941 100644 (file)
@@ -100,9 +100,9 @@ void php_dl(pval *file, int type, pval *return_value)
 
 
        if (type==MODULE_PERSISTENT) {
-               /* Use the configuration hash directly */
+               /* Use the configuration hash directly, the INI mechanism is not yet initialized */
                if (cfg_get_string("extension_dir", &extension_dir)==FAILURE) {
-                       extension_dir = NULL;
+                       extension_dir = PHP_EXTENSION_DIR;
                }
        } else {
                extension_dir = PG(extension_dir);