Re: AW: [PHP-DEV] [RFC] Allow loading extensions by name
| From: | François Laupretre | Date: | Wed, 11 May 2016 11:53:18 +0000 |
| Subject: | Re: AW: [PHP-DEV] [RFC] Allow loading extensions by name | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-93228@lists.php.net to get a copy of this message | ||
Le 11/05/2016 à 08:20, Christian Stoller a écrit :
AFAIK, the 'php_' prefix is required on WIndows because, without it, some extension file names would conflict with system DLLs. The only way to unify names would be to add the php_ prefix everywhere. This is the mechanism used by Apache, with the 'mod_' prefix. Unfortunately, PHP started on Unix, where the prefix was not needed, and didn't want to change the Unix behavior when Windows support was added. About the '.so' suffix, some systems don't use this as shared lib suffix. HP-UX, for instance, uses '.sl', and others exist, like '.dynlib'. On some systems, you cannot load a dynamic library if its suffix is not the right one. So , '.so' is not usable everywhere. Regards François-----Ursprüngliche Nachricht----- Von: François Laupretre [mailto:francois@php.net], Gesendet: Dienstag, 10. Mai 2016 15:23 Please read and comment : https://wiki.php.net/rfc/load-ext-by-name Regards FrançoisWhy not just naming them *.so on all platforms and removing the "php_" prefix on Windows? Apache modules on Windows also have the .so suffix. Best regards Christian