Req #36031 [Opn->Fbk]: considere using dl function instead of dyld fonctions
| From: | cmb@php.net | Date: | Tue, 03 Aug 2021 12:23:36 +0000 |
| Subject: | Req #36031 [Opn->Fbk]: considere using dl function instead of dyld fonctions | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-235551@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=36031&edit=1
ID: 36031
Updated by: cmb@php.net
Reported by: jddupas at yahoo dot fr
Summary: considere using dl function instead of dyld
fonctions
-Status: Open
+Status: Feedback
Type: Feature/Change Request
Package: Dynamic loading
Operating System: Mac OS X.4
PHP Version: 5.1.2
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Is this still an issue with any of the actively supported PHP
versions[1]?
[1] <https://www.php.net/supported-versions.php>
Previous Comments:
------------------------------------------------------------------------
[2006-01-16 13:35:50] jddupas at yahoo dot fr
Description:
------------
Apple Mac OS X documentation says about dyld functions : "These functions are for loading
Mach-O bundle files. They are declared in /usr/include/mach-o/dyld.h. The use of these functions is
discouraged."
And they also says about the dl functions (dlopen family) "These are the recommended functions
to use to interact with the dynamic loader.[...]in Mac OS X v10.4 they are more efficient than other
image-loading functions."
So it would be better to change conditional compilation in zend.h (and where needed) to use dlfcn.h
if dlfcn.h and dyld.h are both present instead of using dyld.h
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=36031&edit=1