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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
47 - 32 = ?
Subscribe to this entry?

 
 [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 Apr 25 03:01:29 2024 UTC