cvs: /php3/functions dl.c

From: Date: Thu, 30 Mar 2000 01:22:37 +0000
Subject: cvs: /php3/functions dl.c
Groups: php.dev 
Request: Send a blank email to php-dev+get-17373@lists.php.net to get a copy of this message
sas Wed Mar 29 17:22:37 2000 EDT Modified files: /php3/functions 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: php3/functions/dl.c diff -u php3/functions/dl.c:1.104 php3/functions/dl.c:1.105 --- php3/functions/dl.c:1.104 Mon Feb 7 15:54:51 2000 +++ php3/functions/dl.c Wed Mar 29 17:22:37 2000 @@ -29,7 +29,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: dl.c,v 1.104 2000/02/07 23:54:51 zeev Exp $ */ +/* $Id: dl.c,v 1.105 2000/03/30 01:22:37 sas Exp $ */ #include "php.h" #include "internal_functions.h" #include "dl.h" @@ -121,6 +121,9 @@ RETURN_FALSE; } get_module = (php3_module_entry *(*)(void)) dlsym(handle, "get_module"); + + if (!get_module) + get_module = (php3_module_entry *(*)(void)) dlsym(handle, "_get_module"); if (!get_module) { dlclose(handle);

« previous php.dev (#17373) next »