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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: john at dryfish dot org
New email:
PHP Version: OS:

 

 [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 18 23:01:27 2024 UTC