Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61770 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26785 invoked from network); 25 Jul 2012 15:38:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jul 2012 15:38:36 -0000 Authentication-Results: pb1.pair.com header.from=lester@lsces.co.uk; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=lester@lsces.co.uk; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lsces.co.uk from 213.123.20.128 cause and error) X-PHP-List-Original-Sender: lester@lsces.co.uk X-Host-Fingerprint: 213.123.20.128 c2bthomr10.btconnect.com Received: from [213.123.20.128] ([213.123.20.128:62293] helo=mail.btconnect.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 91/38-19281-BF210105 for ; Wed, 25 Jul 2012 11:38:36 -0400 Received: from host81-138-11-136.in-addr.btopenworld.com (EHLO _10.0.0.5_) ([81.138.11.136]) by c2bthomr10.btconnect.com with ESMTP id IMT05900; Wed, 25 Jul 2012 16:38:32 +0100 (BST) Message-ID: <501012F7.9090803@lsces.co.uk> Date: Wed, 25 Jul 2012 16:38:31 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120604 Firefox/13.0 SeaMonkey/2.10 MIME-Version: 1.0 To: PHP internals References: <500EDCC7.1020402@ajf.me> <500EE3B9.8010902@ajf.me> <500EEA76.1030407@ajf.me> <5010007A.8060609@lsces .co.uk> <501007A4.9000200@ajf.me> <50100C84.3020505@lsces.co.uk> <50100D68.2040709@ajf.me> In-Reply-To: <50100D68.2040709@ajf.me> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mirapoint-IP-Reputation: reputation=Fail, source=NONE, refid=n/a, actions=MAILHURDLE TAG X-Junkmail-Premium-Raw: score=7/50, refid=2.7.2:2012.7.25.145722:17:7.944, ip=81.138.11.136, rules=__MOZILLA_MSGID, __HAS_MSGID, __SANE_MSGID, __HAS_FROM, __USER_AGENT, __MIME_VERSION, __TO_MALFORMED_2, __BOUNCE_CHALLENGE_SUBJ, __BOUNCE_NDR_SUBJ_EXEMPT, __SUBJ_ALPHA_END, __CT, __CT_TEXT_PLAIN, __CTE, __ANY_URI, __URI_NO_MAILTO, __URI_NO_WWW, __CP_URI_IN_BODY, BODY_ENDS_IN_URL, BODYTEXTP_SIZE_3000_LESS, BODY_SIZE_2000_2999, __MIME_TEXT_ONLY, RDNS_GENERIC_POOLED, HTML_00_01, HTML_00_10, BODY_SIZE_5000_LESS, RDNS_SUSP_GENERIC, RDNS_SUSP, BODY_SIZE_7000_LESS X-Junkmail-Status: score=10/50, host=c2bthomr10.btconnect.com X-Junkmail-Signature-Raw: score=unknown, refid=str=0001.0A0B020B.501012F8.0126:SCFSTAT14830815,ss=1,re=-4.000,fgs=0, ip=0.0.0.0, so=2011-07-25 19:15:43, dmn=2011-05-27 18:58:46, mode=multiengine X-Junkmail-IWF: false Subject: Re: [PHP-DEV] Re: Generators in PHP From: lester@lsces.co.uk (Lester Caine) Andrew Faulds wrote: > Boo hoo, PHP has new features, you'll have to understand them, shock horror! Actually I've not even look at some of these newfangled bits, and if they did appear in one of my key libraries then I'd definitely fork a version and maintain my own copy! I'm STILL trying to catch up with 'strict'! > Also, PHP5 code playing nicely with PHP4? I'm pretty sure PHP4 had big, big > incompatibilities with PHP5. Although I'm too recent a PHP programmer to have > ever had to deal with that. I've only ever dealt with PHP5. But I know that PHP4 > had pass-by-value objects, and PHP5 had pass-by-reference, so I'm surprised if > PHP5 code works correctly in PHP4. Perhaps that is part of the problem here. BC to many older users implied that we could run code that was compatible - YES - with PHP4 while also working in PHP5. It did get to a point where one had to freeze the PHP4 compatible version and maintain that separately, but it was not that long ago ( was it? ). Nowadays PHP5.0 and 5.1 code needed upgrading to run on 5.2, and now 5.2 code needs upgrading but will not necessarily then run on the many 5.2 hosted ISPs when upgraded. We all know that getting ISPs to upgrade is an up hill battle. SOME are still on PHP4! And they certainly will not roll out every version, but jump large blocks, so PHP5.2 is probably still more prevalent than 5.3, and 5.4 has yet to get even an initial roll out in some distributions? So we either support the client base with what they have access to, or we ignore them and write code for a limited audience. I'm making the code base 'strict compliant', but still having to test on PHP5.2 at the same time which increases the time this is taking. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk