Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80181 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33321 invoked from network); 5 Jan 2015 16:37:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jan 2015 16:37:06 -0000 Authentication-Results: pb1.pair.com header.from=julienpauli@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=julienpauli@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.173 as permitted sender) X-PHP-List-Original-Sender: julienpauli@gmail.com X-Host-Fingerprint: 209.85.212.173 mail-wi0-f173.google.com Received: from [209.85.212.173] ([209.85.212.173:64269] helo=mail-wi0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5F/42-21693-1BDBAA45 for ; Mon, 05 Jan 2015 11:37:06 -0500 Received: by mail-wi0-f173.google.com with SMTP id r20so3656379wiv.12 for ; Mon, 05 Jan 2015 08:37:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=L9mRIgkJYQeep3tHmxX1/osvWn6CukavDGipJ+urDnk=; b=WG5MSkTlglAoJPvYUat+E2PBjZbJrSbgtKh53oTR2DQTyXHMu144EYd+1SIrsO6YPL /mGyTNF+hL4N1m9NYIooNJDr5I7L6Nt4dWXUQQReDGJYYTHCC30Tr8qVf67gPjRpoTLu 9Wqhs1sVBUpx95frRlRksMCwu50wmZ6O/IeTvjOdOW01JwidAwR7NlZ/abuQgqbOwo5C x5/OJv6kI/dmDFJVZgdu7WkVnoVG1iWSUsehxdyrp21cbXTmfYJC/uvJC9Moe57JhhNs ZCdDYwDAlebovjAhiIiIBrZtQP9D90AfyVUfQQiI8UlDfz3aYr7dO/I38zMp8M8d2YHK 4lzA== X-Received: by 10.180.82.98 with SMTP id h2mr27589380wiy.7.1420475823298; Mon, 05 Jan 2015 08:37:03 -0800 (PST) MIME-Version: 1.0 Sender: julienpauli@gmail.com Received: by 10.195.4.41 with HTTP; Mon, 5 Jan 2015 08:36:23 -0800 (PST) In-Reply-To: <54AABB2F.3080803@gmail.com> References: <54AABB2F.3080803@gmail.com> Date: Mon, 5 Jan 2015 17:36:23 +0100 X-Google-Sender-Auth: kZb6J2sfSGlDhVK5zT7xGanpDPA Message-ID: To: Rowan Collins Cc: PHP Internals Content-Type: multipart/alternative; boundary=f46d044283ecdc1d07050bea4c8a Subject: Re: [PHP-DEV] [RFC] Extension Prepend Files From: jpauli@php.net (Julien Pauli) --f46d044283ecdc1d07050bea4c8a Content-Type: text/plain; charset=UTF-8 On Mon, Jan 5, 2015 at 5:26 PM, Rowan Collins wrote: > Julien Pauli wrote on 05/01/2015 16:19: > >> Hello. >> >> Can't this be already done somehow ? In RINIT stage obviously. >> I don't understand why to change our API to add a feature we already can >> use ? >> >> Julien.P >> > > The RFC explains the motivation reasonably clearly. In particular: > > > Using RINIT is error prone and a little bit dangerous, because is a bit > too early for some data to be cleanly created (globals). > This is a problem that can already be dealt with. Globals are created before RINIT. > Basically, it's a standardised implementation, and allows the code to run > at a more appropriate phase of execution. Yes, I understand the RFC as a standardisation of a concept that is very uncommonly used, and that could lead to problems against OPcode caches. Having extensions declaring php files to load, knowing we can dl() them at runtime, we have static vs dynamic extensions... That smells problems to me (at least its not as easy as the RFC actually states) , however, nothing is impossible. Julien.P --f46d044283ecdc1d07050bea4c8a--