Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59659 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35550 invoked from network); 10 Apr 2012 17:22:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Apr 2012 17:22:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=chrisstocktonaz@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=chrisstocktonaz@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.170 as permitted sender) X-PHP-List-Original-Sender: chrisstocktonaz@gmail.com X-Host-Fingerprint: 209.85.210.170 mail-iy0-f170.google.com Received: from [209.85.210.170] ([209.85.210.170:48179] helo=mail-iy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 46/44-14507-85C648F4 for ; Tue, 10 Apr 2012 13:22:33 -0400 Received: by iaeh11 with SMTP id h11so41830iae.29 for ; Tue, 10 Apr 2012 10:22:30 -0700 (PDT) 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:content-transfer-encoding; bh=JPNG8SsgpBQv5N346OUwXM98FCvNJ4coEDFzja6pivA=; b=FblfX2c69K9EjQxin/OeY2MtseqUsojBibWpohq2EulqQ+OuV7fyGfAvfm73eT6iZX sOd1P3/5FNUDFBB7K0i6gQMft471mrxxHoJ0n/pJJieJ9i3GXtmV6bzAja714Yd2GveH 8Up0PCQx5iQloyA4flXA8JAvnXVe2U3YoepWlKVwIFaC3Jm6S16yiU3VBED/csKeE7hX yRR4hldHHIpk0aZXjG8a2CdKIKcfRT8XrXf0aGsnMCEfHYIsmcHrWmcbkUFcIqTTjlU/ 9UWUq+F6mcj2GwKt1wZxfuU+m/6eVrGlgKAYrnS6BLSzDW8nGGBXQv1zRtbciHybvG63 sqXg== MIME-Version: 1.0 Received: by 10.50.160.225 with SMTP id xn1mr3264461igb.3.1334078550032; Tue, 10 Apr 2012 10:22:30 -0700 (PDT) Received: by 10.42.174.9 with HTTP; Tue, 10 Apr 2012 10:22:29 -0700 (PDT) In-Reply-To: <4F84587A.1090006@gmail.com> References: <-5877502932356715576@unknownmsgid> <-3647345967307864634@unknownmsgid> <4F831FAE.2030208@ralphschindler.com> <4F8336CA.6030800@gmail.com> <-3946312978847986790@unknownmsgid> <4F84587A.1090006@gmail.com> Date: Tue, 10 Apr 2012 10:22:29 -0700 Message-ID: To: =?ISO-8859-1?Q?=C1ngel_Gonz=E1lez?= Cc: Luke Scott , PHP Developers Mailing List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] RFC: source files without opening tag From: chrisstocktonaz@gmail.com (Chris Stockton) Hello, 2012/4/10 =C1ngel Gonz=E1lez : > Luke Scott wrote: >>> if ( version_compare(PHP_VERSION, '5.5', '<') ) >>> =A0include_once $file; >>> else >>> =A0require_code($file, array( 'once'=3D>true, 'warn' =3D> '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. > > I understand your point that you are trying to make, but forward compatibility I am not sure shares the same critical nature as backwards. I think a software provider who is aiming at supporting a wide variety of php versions is likely going to code around the lowest common denominator. Even still, if they chose to they could have two bootstrap files, one that included files with the new features and one with the old.