Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72710 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3099 invoked from network); 20 Feb 2014 15:48:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Feb 2014 15:48:54 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.169 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.216.169 mail-qc0-f169.google.com Received: from [209.85.216.169] ([209.85.216.169:59670] helo=mail-qc0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B9/76-00813-4E326035 for ; Thu, 20 Feb 2014 10:48:53 -0500 Received: by mail-qc0-f169.google.com with SMTP id e9so1276553qcy.14 for ; Thu, 20 Feb 2014 07:48:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=VBjAsgKbZnFV3CiZ93bobWDKMPGrgFPZK8FHfMI1Ll4=; b=NhW0sAgrxxOHFNDnpc/yzcmSnMIKnDR8XSgj83JOpzy2zgaWTNF8s2v7Yp4t5fC/NV R0LpwbEqKJyf1Umr2C84bXgtfmZQ1+MOFCROEXhUgiS5NLbL53x/w4JOIq1B7qphlQy/ jdZy9QsXcV6BL0Zo/SJKOvuYH/aD0xcpYMXGL+mGXXB4/R7XjKsV/lcixZLCNbq73uBj sfMK4e72yEzjqnudaXp9d0LPY1TjY7yENCW0yERlPSbgEUVUjC+BjhtUJD6LBTCgXsy/ u+SIMV+JcWHp4ZnxIQyeFdgJ5yod2iD5lChS1hHE8tpX5HonZJI3BBAnHaimof441b44 tG8A== MIME-Version: 1.0 X-Received: by 10.140.39.212 with SMTP id v78mr2342977qgv.77.1392911330532; Thu, 20 Feb 2014 07:48:50 -0800 (PST) Received: by 10.140.96.70 with HTTP; Thu, 20 Feb 2014 07:48:50 -0800 (PST) In-Reply-To: <3B2D0F80-FACF-4D6E-A11F-28009F5ED0FE@googlemail.com> References: <1373879683.17031.4.camel@guybrush> <3B2D0F80-FACF-4D6E-A11F-28009F5ED0FE@googlemail.com> Date: Thu, 20 Feb 2014 16:48:50 +0100 Message-ID: To: Kevin Ingwersen Cc: Giuseppe Ronca , internals , Sebastian Krebs Content-Type: multipart/alternative; boundary=001a11c126620f7f0f04f2d87103 Subject: Re: [PHP-DEV] PHP proposal on modular systems From: tyra3l@gmail.com (Ferenc Kovacs) --001a11c126620f7f0f04f2d87103 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, Feb 14, 2014 at 2:09 PM, Kevin Ingwersen wrote: > If we could just override the require function, so we would be able to > mimic the behavior of pytons import, and nodejs=E2=80=99 require. Porting= the > architecture is rather easy, but without being able to override functions > such as require, this is going to be harder. > Actually, this is an idea for an RFC i was thinking about=E2=80=A6 o.o; T= hing is > just, I dont know how to mod the core to allow overriding of the require > function. > > Kind regards. > Am Fr. Feb. 14 2014 13:53:37 schrieb Giuseppe Ronca: > > hi, we prefer bottom (or inline posting with proper truncation of the quoted messages) posting on the php.net mailing lists, please try to follow our mailing list rules when sending a mailt to the list: https://github.com/php/php-src/blob/master/README.MAILINGLIST_RULES if require would be a function, one could use tricks provided by the runkit extension: http://www.php.net/manual/en/function.runkit-function-rename.php but require and variations aren't functions, but language constructs, which means that introducing redirection would be a bit more tricky, plus we also have to consider, that any additional logic to those keywords would slow down the execution for every user. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --001a11c126620f7f0f04f2d87103--