cvs: /php4/ext/standard dl.c

From: Date: Thu, 30 Mar 2000 01:21:33 +0000
Subject: cvs: /php4/ext/standard dl.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-12855@lists.php.net to get a copy of this message
sas Wed Mar 29 17:21:33 2000 EDT Modified files: /php4/ext/standard dl.c Log: Some OS prepend _ to symbol names while their dynamic linker does not do that automatically. Thus we check manually for _get_module. Index: php4/ext/standard/dl.c diff -u php4/ext/standard/dl.c:1.32 php4/ext/standard/dl.c:1.33 --- php4/ext/standard/dl.c:1.32 Sat Mar 25 07:57:03 2000 +++ php4/ext/standard/dl.c Wed Mar 29 17:21:03 2000 @@ -122,8 +122,18 @@ efree(libpath); - get_module = (zend_module_entry *(*)(void)) DL_FETCH_SYMBOL(handle, "get_module"); + get_module = (zend_module_entry *(*)(void)) DL_FETCH_SYMBOL(handle, "get_module"); + + /* + * some OS prepend _ to symbol names while their dynamic linker + * does not do that automatically. Thus we check manually for + * _get_module. + */ + + if (!get_module) + get_module = (zend_module_entry *(*)(void)) DL_FETCH_SYMBOL(handle, "_get_module"); + if (!get_module) { DL_UNLOAD(handle); php_error(E_CORE_WARNING,"Invalid library (maybe not a PHP library) '%s' ",file->value.str.val);

« previous php.version4 (#12855) next »