Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61967 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36155 invoked from network); 2 Aug 2012 16:07:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Aug 2012 16:07:46 -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.26.185 cause and error) X-PHP-List-Original-Sender: lester@lsces.co.uk X-Host-Fingerprint: 213.123.26.185 c2beaomr07.btconnect.com Received: from [213.123.26.185] ([213.123.26.185:17770] helo=mail.btconnect.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0D/98-21438-FC5AA105 for ; Thu, 02 Aug 2012 12:07:44 -0400 Received: from host81-138-11-136.in-addr.btopenworld.com (EHLO _10.0.0.5_) ([81.138.11.136]) by c2beaomr07.btconnect.com with ESMTP id IMF27907; Thu, 02 Aug 2012 17:07:40 +0100 (BST) Message-ID: <501AA5CC.4040803@lsces.co.uk> Date: Thu, 02 Aug 2012 17:07:40 +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: <501A69B4.4040401@lsces.co.uk> <501A73B8.3030009@richgray.com> <501A775C.2040202@lsces.co.uk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mirapoint-IP-Reputation: reputation=Fair-1, source=Queried, refid=tid=0001.0A0B0301.501AA5CC.0024, actions=tag X-Junkmail-Premium-Raw: score=7/50, refid=2.7.2:2012.8.2.151517: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, __INT_PROD_COMP, BODY_ENDS_IN_URL, BODY_SIZE_3000_3999, __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=c2beaomr07.btconnect.com X-Junkmail-Signature-Raw: score=unknown, refid=str=0001.0A0B020A.501AA5CC.00A7: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] register_globals work arounds From: lester@lsces.co.uk (Lester Caine) Anthony Ferrara wrote: > I'm specifically asking in relation to helping users migrate from PHP5.2 ... > trying to expand the documentation of making that process easier. Pointing > at a single manual page is a good example of why we need a more consistent > support for all those users who are not as computer literate as we would > like. That function may be a useful element of solving the problem, but it > does not answer the specific question asked? > > Register_Globals has been seen (and touted) as bad practice since the 4.2. It > was disabled by default as of Feb-5-2002, and in 4.2.0. This is a problem that > the vast majority of users solved years ago. If you were still using them in 5.2 > a decade later, you've got other problems. There is still a lot of code which was crudely ported from PHP4 to PHP5 when PHP4 was end of lifed in 2008. This code still runs fine on 5.2 even if is archaic and a lot of legacy sites still rely on it. *I* am still using 199x code as it's still doing it's job, and since it's on private networks, the hacking risks don't really apply, but I'm asking simply to get some help to document processes to allow other users to upgrade. > The documentation exists. The blog posts exist. But they are old, because this > is an old problem. I don't think internals should worry themselves with it. > Especially since 5.2 has been EOL for a while now. If you brought this up when > 5.3 was being planned, perhaps. But at this point, it's either a general list > issue, or MAYBE a docs list issue, but not an internals list issue... Perhaps because it IS such an old issue, that is why it's not coming up in searches? All I get is how to switch register_globals back on again. Nothing on ways to rewrite the code so that it will work with PHP5.4 at all ( and the problems getting some of these changes working with .htaccess hacks Rasmus ) which is probably because it's not actually a 5.2 to 5.3/4 migration problem? To be honest I can't even see it mentioned in the PHP4 to 5 guide. IF PHP5.2 is to be put to bed, it needs a concerted effort to get rid of the reasons that ISP's are not upgrading, and this is one since they know when they do switch many of their 'naive' customer's sites will simply stop working? 'Not our problem' is all very well, but if a section of the 60% of users still running on PHP5.2 are simply knocked off the internet, then it's not very good press? This may be a non-issue, but it would at least be useful to confirm that is the case, and that ISP don't need to worry about it? In the meantime some links to this old material would be helpful, if only to get access to them on the migration guides. Because I'm actively looking, hopefully the problem will not arise, but you can guarantee something will pop up that has been overlooked? There are a lot of subtle little changes which don't on their own give trouble, but a logjam has been created simply because older code does still work as long as certain conditions are met, and ensuring that a controlled release is achieved needs help from people who actually have the answers. -- 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