]> granicus.if.org Git - php/commitdiff
- Fixed bug #33899 (CLI: setting extension_dir=some/path extension=foobar.so does...
authorfoobar <sniper@php.net>
Fri, 29 Jul 2005 13:25:33 +0000 (13:25 +0000)
committerfoobar <sniper@php.net>
Fri, 29 Jul 2005 13:25:33 +0000 (13:25 +0000)
NEWS
ext/standard/dl.c

diff --git a/NEWS b/NEWS
index 68e2086f8d2da346b29154a8ce69c02cd6baf6c9..8d10f9218e37409d642dee63b1ecbae1485a76df 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,8 @@ PHP                                                                        NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? ??? 2005, PHP 5.1
 - Fixed bug #33917 (number_format() output with > 1 char separators). (Jani)
+- Fixed bug #33899 (CLI: setting extension_dir=some/path extension=foobar.so
+  does not work). (Jani)
 - Fixed bug #33882 (CLI was looking for php.ini in wrong path). (Hartmut)
 - Fixed bug #33869 (strtotime() problem with "+1days" format). (Ilia) 
 - Fixed bug #33841 (pdo sqlite driver forgets to update affected column count
index 278950d5fa9501d097fe044404260dea69a1ea07..a9a31c8f57e3af31e0dafc3fe462463d17e32086 100644 (file)
@@ -23,7 +23,9 @@
 #include "php.h"
 #include "dl.h"
 #include "php_globals.h"
+#include "php_ini.h"
 #include "ext/standard/info.h"
+
 #include "SAPI.h"
 
 #if defined(HAVE_LIBDL) || HAVE_MACH_O_DYLD_H
@@ -108,16 +110,13 @@ void php_dl(zval *file, int type, zval *return_value TSRMLS_DC)
        int error_type;
        char *extension_dir;
 
-       if (type==MODULE_PERSISTENT) {
-               /* Use the configuration hash directly, the INI mechanism is not yet initialized */
-               if (cfg_get_string("extension_dir", &extension_dir)==FAILURE) {
-                       extension_dir = PHP_EXTENSION_DIR;
-               }
+       if (type == MODULE_PERSISTENT) {
+               extension_dir = INI_STR("extension_dir");
        } else {
                extension_dir = PG(extension_dir);
        }
 
-       if (type==MODULE_TEMPORARY) {
+       if (type == MODULE_TEMPORARY) {
                error_type = E_WARNING;
        } else {
                error_type = E_CORE_WARNING;