Bug #3264: dl.c does a dlsym('get_module') but symbol '_get_module' is not found
| From: | john at dryfish dot org | Date: | Fri, 21 Jan 2000 11:07:22 +0000 |
| Subject: | Bug #3264: dl.c does a dlsym('get_module') but symbol '_get_module' is not found | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-14797@lists.php.net to get a copy of this message | ||
From: john@dryfish.org
Operating system: OpenBSD
PHP version: 3.0.14
PHP Bug Type: Dynamic loading related
Bug description: dl.c does a dlsym('get_module') but symbol '_get_module' is
not found
This is confirmed with an install of OpenBSD 2.6 with gcc 2.95.1, and OpenBSD 2.5 and OpenBSD
2.4/gcc 2.8.1.
OpenBSD's version of gcc prepends an underscore to function names in the symbol table.
dlsym() only looks for the symbol name it is given instead of prepending an underscore itself.
I think PHP should check for both 'get_module' and '_get_module' so that PHPDLs
can be used on OpenBSD.