Le 11/05/2016 à 08:20, Christian Stoller a écrit :
-----Ursprüngliche Nachricht-----
Von: François Laupretre [mailto:franc...@php.net], Gesendet: Dienstag, 10. Mai 
2016 15:23

Please read and comment :

https://wiki.php.net/rfc/load-ext-by-name

Regards

François


Why 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


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

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to