Browse Source

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)
PHP-4.0.5
Zeev Suraski 26 years ago
parent
commit
1f9ee4857b
  1. 4
      ext/standard/dl.c

4
ext/standard/dl.c

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

Loading…
Cancel
Save