Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59649 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14711 invoked from network); 10 Apr 2012 15:52:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Apr 2012 15:52:49 -0000 Authentication-Results: pb1.pair.com header.from=keisial@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=keisial@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.170 as permitted sender) X-PHP-List-Original-Sender: keisial@gmail.com X-Host-Fingerprint: 209.85.215.170 mail-ey0-f170.google.com Received: from [209.85.215.170] ([209.85.215.170:49454] helo=mail-ey0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F1/00-14507-247548F4 for ; Tue, 10 Apr 2012 11:52:35 -0400 Received: by eaao10 with SMTP id o10so1190889eaa.29 for ; Tue, 10 Apr 2012 08:52:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=Gae9pwK0r1D7aL6B3i/pC3nWYB1EIQC3CF+aTNXgekw=; b=NGipvUtqERyfEgDGUm+0ovt4it+K2SNjG2pNfgDPjtG5ld0OCdz8A22uCtzDydVc4a kpK9/1uKRt7kJTe6sa+Lo6ZId1zWf1kycRLiOixBoFxnJG64CgBARnpv4i4AkpZ7/B1x 83Sni+3Y8zzIip1PzRnyZ99s9c5Y6p2MK4fuBXgOEH7Zu4tGHcgRzQ/g6EXnxQeF1cWW nmwBw7zSN1nqKUE/SoGrWtBb2ALkaF7DPvVB/P5jdte6UaR8dGwGObFxFi/gV93CUjoy Lho+bssOGOrKsgPwTttQnbiaVcR8EEjHFbgx7F/5gGdbrZboeinf/urSG8ziqSY8AbCi mMMA== Received: by 10.14.97.12 with SMTP id s12mr1514789eef.8.1334073151264; Tue, 10 Apr 2012 08:52:31 -0700 (PDT) Received: from [192.168.1.26] (154.Red-83-55-229.dynamicIP.rima-tde.net. [83.55.229.154]) by mx.google.com with ESMTPS id q45sm85191126eem.7.2012.04.10.08.52.29 (version=SSLv3 cipher=OTHER); Tue, 10 Apr 2012 08:52:30 -0700 (PDT) Message-ID: <4F84587A.1090006@gmail.com> Date: Tue, 10 Apr 2012 17:57:46 +0200 User-Agent: Thunderbird MIME-Version: 1.0 To: Luke Scott , PHP Developers Mailing List References: <-5877502932356715576@unknownmsgid> <-3647345967307864634@unknownmsgid> <4F831FAE.2030208@ralphschindler.com> <4F8336CA.6030800@gmail.com> <-3946312978847986790@unknownmsgid> In-Reply-To: <-3946312978847986790@unknownmsgid> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] RFC: source files without opening tag From: keisial@gmail.com (=?ISO-8859-1?Q?=C1ngel_Gonz=E1lez?=) Luke Scott wrote: >> if ( version_compare(PHP_VERSION, '5.5', '<') ) >> include_once $file; >> else >> require_code($file, array( 'once'=>true, 'warn' => 'ignore' ) ); > I'm fairly certain that wouldn't work either. Require and friends are > constructs, not functions. > > Luke I had assumed require_code would work with brackets around the parameters. Someone mentioned it, but you raise a good point in that it's not stated by the rfc, and would need to be explicitely supported. There are people calling require and friends with brackets, but that likely (ie. not looking at the lexer) works because the parameter is ('foo') which resolves as 'foo'. That wouldn't work when there are two of them. I think it should be something to consider when making the patch, though.