php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3264 dl.c does a dlsym('get_module') but symbol '_get_module' is not found
Submitted: 2000-01-21 06:07 UTC Modified: 2000-03-29 20:23 UTC
From: john at dryfish dot org Assigned:
Status: Closed Package: Dynamic loading
PHP Version: 3.0.14 OS: OpenBSD
Private report: No CVE-ID: None
 [2000-01-21 06:07 UTC] john at dryfish dot org
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-03-29 20:23 UTC] sas at cvs dot php dot net
Added to CVS. Thanks for your suggestion.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 15:01:29 2024 UTC