Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91648 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32954 invoked from network); 13 Mar 2016 14:01:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Mar 2016 14:01:38 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.215.10 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.215.10 mail.experimentalworks.net Received: from [217.114.215.10] ([217.114.215.10:48518] helo=mail.experimentalworks.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F3/CD-14237-0C275E65 for ; Sun, 13 Mar 2016 09:01:37 -0500 Received: by mail.experimentalworks.net (Postfix, from userid 1003) id 5CF62449DE; Sun, 13 Mar 2016 15:01:33 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on km31408.keymachine.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=4.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.0 X-Spam-HAM-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP Received: from [192.168.2.34] (ppp-46-244-190-90.dynamic.mnet-online.de [46.244.190.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: johannes@schlueters.de) by mail.experimentalworks.net (Postfix) with ESMTPSA id AFCDD449DB; Sun, 13 Mar 2016 15:01:31 +0100 (CET) Message-ID: <1457877690.29682.11.camel@kuechenschabe> To: Andrea Faulds Cc: internals@lists.php.net Date: Sun, 13 Mar 2016 15:01:30 +0100 In-Reply-To: <3F.65.03587.65DEED65@pb1.pair.com> References: <7D13E7EB-910D-42DD-ACF1-3872C1CE55C1@heroku.com> <3F.65.03587.65DEED65@pb1.pair.com> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-Y7UKRvkd3FIQCn4sD9wK" X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Subject: Re: [PHP-DEV] Re: Enabling opcache causes libraries to build as static From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) --=-Y7UKRvkd3FIQCn4sD9wK Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2016-03-08 at 15:18 +0000, Andrea Faulds wrote: > While we're at it, why is Opcache still built as shared? Does > something=20 > prevent it being statically-linked? The reason for this is that opcache is no "PHP module" but a "Zend Extension" and we simply don't have an initialization mechanism for static Zend Extensions. Such a mechanism would require to create an extension list, similar to the module list in main/internal_functions.c from the build system (see configure.in and .win32/build/confutils.js) and then invoke them somewhere around zend_startup_extensions_mechanism(), zend_startup_extensions() and zend_shutdown_extensions(). Should be quite straight forward to do (for somebody willing to dig into both, autofoo and our Windows build system) johannes --=-Y7UKRvkd3FIQCn4sD9wK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQEcBAABAgAGBQJW5XK6AAoJEH3sTmn8nIPXAQgH/2Rwoj3ZALTbhLfrlTRqW5Lq mEx0R0IP5Km3hkH4Ldk+1SYzHCwZJTIUG2IsEv9bmFAOef6yGzlm+BmPrYZ0sEkk XaJ4U7+LVPnpkEdgBHdt61O8v+1HkoVNHn0flQeqXi9qPQFkw/5mWrnRPnqg2nRl sme2M7HoWrhE9sNSLmvC9O/yhH95TyxfyFPClu4WW4yKaoE1UI0DgWPcRJlHyNZ0 qgZEBTJyuvlUvybBkZDys3JViFiexkZhX4GxEWP4GIxzPwwQwBXj4C06XVNnKNq6 8VXhzEZHJY9evklBaQCE3UEbkKxLUqWax1WobwdlIMI0R6kUsgE4f0FJMwpQP0c= =ZYkq -----END PGP SIGNATURE----- --=-Y7UKRvkd3FIQCn4sD9wK--