1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 09:42:22 +01:00
Files
archived-php-src/main
Thomas Petazzoni 2842aa2a07 main/php_ini.c: build empty php_load_zend_extension_cb() when !HAVE_LIBDL
Commit 0782a7fc63 ("Fixed bug #74866
extension_dir = "./ext" now use current directory for base") modified
the php_load_zend_extension_cb() function to use php_load_shlib(), and
pass a handle to the newly introduced zend_load_extension_handle()
function instead of passing the extension path to
zend_load_extension().

While doing so, it introduced a call to php_load_shlib() from code
that is built even when HAVE_LIBDL is not defined. However,
php_load_shlib() is not implemented when HAVE_LIBDL is not defined,
for obvious reasons.

It turns out that zend_load_extension_handle() anyway doesn't do
anything when ZEND_EXTENSIONS_SUPPORT is defined to 0, and
ZEND_EXTENSIONS_SUPPORT is not defined when HAVE_LIBDL is not defined
(Zend/zend_portability.h).

Fixes the following build failure when building on a system that
doesn't have libdl:

main/php_ini.o: In function `php_load_zend_extension_cb':
php_ini.c:(.text+0x478): undefined reference to `php_load_shlib'
php_ini.c:(.text+0x4b0): undefined reference to `php_load_shlib'
collect2: error: ld returned 1 exit status

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2018-03-23 21:13:45 +01:00
..
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2014-12-13 23:06:14 +01:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-03-13 12:49:25 +01:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00