Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56287 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39995 invoked from network); 11 Nov 2011 19:42:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Nov 2011 19:42:16 -0000 Authentication-Results: pb1.pair.com header.from=ezyang@MIT.EDU; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ezyang@mit.edu; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain mit.edu designates 18.9.25.13 as permitted sender) X-PHP-List-Original-Sender: ezyang@mit.edu X-Host-Fingerprint: 18.9.25.13 DMZ-MAILSEC-SCANNER-2.MIT.EDU Linux 2.6 Received: from [18.9.25.13] ([18.9.25.13:48728] helo=dmz-mailsec-scanner-2.mit.edu) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DC/E5-09898-79A7DBE4 for ; Fri, 11 Nov 2011 14:42:15 -0500 X-AuditID: 1209190d-b7f726d0000008d1-4f-4ebd7a94e369 Received: from mailhub-auth-2.mit.edu ( [18.7.62.36]) by dmz-mailsec-scanner-2.mit.edu (Symantec Messaging Gateway) with SMTP id 47.D9.02257.49A7DBE4; Fri, 11 Nov 2011 14:42:12 -0500 (EST) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id pABJgCvv001154; Fri, 11 Nov 2011 14:42:12 -0500 Received: from localhost (EZYANG.MIT.EDU [18.243.1.50]) (authenticated bits=0) (User authenticated as ezyang@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id pABJgBFR014979; Fri, 11 Nov 2011 14:42:12 -0500 (EST) Content-Type: text/plain; charset=UTF-8 Cc: internals To: Rasmus Lerdorf In-reply-to: <4EBD79A5.2020604@lerdorf.com> References: <1320740449-sup-5688@ezyang> <4EB8EAF1.3040104@lerdorf.com> <1320981061-sup-2803@ezyang> <4EBD79A5.2020604@lerdorf.com> Date: Fri, 11 Nov 2011 14:42:11 -0500 Message-ID: <1321040435-sup-2225@ezyang> User-Agent: Sup/git Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrJIsWRmVeSWpSXmKPExsUixG6nojulaq+fwf7HlhYH3m5js1i5egm7 A5NH7+FUjyfr1rAEMEVx2aSk5mSWpRbp2yVwZazYeoO5YBJ/xZoNXewNjN+4uxg5OSQETCS2 rl7OAmGLSVy4t56ti5GLQ0hgH6PEhp2NLBDOBkaJuzsOs0M4nxkl9q/bytzFyMHBLKAusX6e EEg3iHmtu5MVxBYWsJJYc/4FM4jNBhR/dOwpWFwEyL7SepAJxOYU0JbY9PouWI2QQDOjxLWt 1iA2i4CqxJsNLWBxXgENiTNvfoJdJyogLPHkSDMzxC55ieats5knMArMQrhiFpLMAkamVYyy KblVurmJmTnFqcm6xcmJeXmpRbpGermZJXqpKaWbGEHByCnJu4Px3UGlQ4wCHIxKPLwLkvb6 CbEmlhVX5h5ilORgUhLltawECvEl5adUZiQWZ8QXleakFh9ilOBgVhLhnWIOlONNSaysSi3K h0lJc7AoifMW7nDwExJITyxJzU5NLUgtgsmqc3AIrPy4mlWKJS8/L1VJglcHGItCgkWp6akV aZk5JQiVTBycIHt4gPaA1fAWFyTmFmemQ+RPMSpKifM6giQEQBIZpXlwvbAU8opRHOgrYV4t kCoeYPqB634FNJgJaDCLAtjgkkSElFQD415Dz0tvTr6KuRTw6+WZb6t/PvKIEu68bvhr+0W2 R6kS79s2v5w9aZNvYuO8JM/dUy40vX5wZME1OZnWLZdY86x6vS5OVJ0sULCQd5mJ6qqUFSkv Ot2lt+oGPvwvkX3h2LOYS3ujLtfPC1ia8qgg4FHWipCqwo8z+ZKMP/w0sc+6mSxxQHyRNZ8S S3FGoqEWc1FxIgBJvQtn/AIAAA== Subject: Re: [PHP-DEV] Load extensions for .user.ini files From: ezyang@MIT.EDU ("Edward Z. Yang") http://svn.php.net/repository/php/php-src/branches/PHP_5_3 r318957 We also applied it to 5.3.8 release, although we had to fix up the patch for that. I can port it to 5.4. Edward Excerpts from Rasmus Lerdorf's message of Fri Nov 11 14:38:13 -0500 2011: > Which branch in this patch against? It doesn't apply to 5_3/5_4/trunk > > It is short and simple so I could do it manually, of course, but I'd > like to know what you have been testing it against. > > On 11/10/2011 07:14 PM, Edward Z. Yang wrote: > > Here is the proposed patch (sans tests; we did our own manual testing > > on 32-bit and 64-bit, and had to fix an unrelated bug; will provide > > tests when you say so): > > > > http://web.mit.edu/~ezyang/Public/php-user-ini-extension.patch > > > > The change to zlist_clean is necessary because otherwise extension_lists can't > > be reused for the second round of extension appliations (since the head and > > tail pointers have garbage in them). You should probably take that fix regardless > > of what you think of the feature change. > > > > Edward > > > > Excerpts from Rasmus Lerdorf's message of Tue Nov 08 03:40:17 -0500 2011: > >> On 11/08/2011 12:23 AM, Edward Z. Yang wrote: > >>> Hello all, > >>> > >>> My team is interested in permitting .user.ini files to load > >>> extensions. We believe this to be a simple fix: add > >>> an invocation of php_ini_register_extensions to the end > >>> of sapi/cgi/cgi-main.c. > >>> > >>> I don't believe this steps on any invariants, since extensions > >>> can usually be loaded arbitrarily late. > >>> > >>> Let me know what the list thinks. I can submit a patch and tests > >>> if y'all decide it's a good idea. > >> > >> You are aware that these extensions can't be unloaded, right? So one > >> user loading an extension will potentially be stepping on another user > >> and breaking their code. > >> > >> -Rasmus