Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93228 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41506 invoked from network); 11 May 2016 11:53:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 May 2016 11:53:29 -0000 Authentication-Results: pb1.pair.com header.from=francois@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=francois@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 212.27.42.2 as permitted sender) X-PHP-List-Original-Sender: francois@php.net X-Host-Fingerprint: 212.27.42.2 smtp2-g21.free.fr Received: from [212.27.42.2] ([212.27.42.2:8272] helo=smtp2-g21.free.fr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 06/29-28272-63D13375 for ; Wed, 11 May 2016 07:53:27 -0400 Received: from [127.0.0.1] (unknown [82.240.16.115]) (Authenticated sender: flaupretre@free.fr) by smtp2-g21.free.fr (Postfix) with ESMTPSA id 5C8BB2003AC; Wed, 11 May 2016 11:43:33 +0200 (CEST) To: Christian Stoller , PHP internals References: <59e5902d-004f-33b5-5d6f-991d89371e05@php.net> <124101109CE9C1419F74344AA1F1CCB82810150353@Ikarus.ameusgmbh.intern> Message-ID: Date: Wed, 11 May 2016 13:53:18 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <124101109CE9C1419F74344AA1F1CCB82810150353@Ikarus.ameusgmbh.intern> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Antivirus: avast! (VPS 160511-0, 11/05/2016), Outbound message X-Antivirus-Status: Clean Subject: Re: AW: [PHP-DEV] [RFC] Allow loading extensions by name From: francois@php.net (=?UTF-8?Q?Fran=c3=a7ois_Laupretre?=) Le 11/05/2016 à 08:20, Christian Stoller a écrit : >> -----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ç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