From ae01c146d101d3f2751aed00f66c01e57a4052bc Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Tue, 8 Jun 2010 12:54:11 +0000 Subject: [PATCH] fix bug #51276 (php_load_extension() is missing when HAVE_LIBDL is undefined) --- NEWS | 2 ++ main/php_ini.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/NEWS b/NEWS index ae964462a0..096131b227 100644 --- a/NEWS +++ b/NEWS @@ -132,6 +132,8 @@ PHP NEWS on). (Ilia, j dot jeising at gmail dot com) - Fixed bug #51291 (oci_error doesn't report last error when called two times) (Oracle Corp.) +- Fixed bug #51276 (php_load_extension() is missing when HAVE_LIBDL is undefined). + (Tony) - Fixed bug #51269 (zlib.output_compression Overwrites Vary Header). (Adam) - Fixed bug #51257 (CURL_VERSION_LARGEFILE incorrectly used after libcurl version 7.10.1). (aron dot ujvari at microsec dot hu) diff --git a/main/php_ini.c b/main/php_ini.c index e6c71a14d4..2c699b1a4d 100644 --- a/main/php_ini.c +++ b/main/php_ini.c @@ -346,7 +346,9 @@ static void php_ini_parser_cb(zval *arg1, zval *arg2, zval *arg3, int callback_t */ static void php_load_php_extension_cb(void *arg TSRMLS_DC) { +#ifdef HAVE_LIBDL php_load_extension(*((char **) arg), MODULE_PERSISTENT, 0 TSRMLS_CC); +#endif } /* }}} */ -- 2.50.1