1
0
mirror of https://github.com/php/php-src.git synced 2026-04-10 17:43:13 +02:00

Fix the problem Sascha reported, about extension_dir

@- Fixed a bug that prevented a changed compile-time extension_dir from
@  affecting modules that were loaded via php.ini (Zeev)
This commit is contained in:
Zeev Suraski
2000-11-05 15:03:41 +00:00
parent 29086bc027
commit 1f9ee4857b

View 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);