Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50958 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50480 invoked from network); 9 Dec 2010 16:52:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Dec 2010 16:52:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=addw@phcomp.co.uk; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=addw@phcomp.co.uk; sender-id=permerror Received-SPF: pass (pb1.pair.com: domain phcomp.co.uk designates 78.32.209.33 as permitted sender) X-PHP-List-Original-Sender: addw@phcomp.co.uk X-Host-Fingerprint: 78.32.209.33 freshmint.phcomp.co.uk Linux 2.6 Received: from [78.32.209.33] ([78.32.209.33:61388] helo=mint.phcomp.co.uk) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C1/03-32270-F49010D4 for ; Thu, 09 Dec 2010 11:52:33 -0500 Received: from addw by mint.phcomp.co.uk with local (Exim 4.63) (envelope-from ) id 1PQjjC-0001cn-0h; Thu, 09 Dec 2010 16:52:22 +0000 Date: Thu, 9 Dec 2010 16:52:22 +0000 To: Reindl Harald Cc: Andrey Hristov , PHP Internals List Message-ID: <20101209165222.GA6075@phcomp.co.uk> Mail-Followup-To: Reindl Harald , Andrey Hristov , PHP Internals List References: <4D00ABFE.5070403@hristov.com> <4D00CF96.3070701@hristov.com> <4D010093.8090604@thelounge.net> <4D010193.9030603@hristov.com> <4D010669.8020209@thelounge.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4D010669.8020209@thelounge.net> User-Agent: Mutt/1.4.2.2i Organization: Parliament Hill Computers Ltd Subject: Re: [PHP-DEV] Deprecating "global" + $GLOBALS, making $_REQUEST, $_GET, $_POST read-only From: addw@phcomp.co.uk (Alain Williams) On Thu, Dec 09, 2010 at 05:40:09PM +0100, Reindl Harald wrote: > > Am 09.12.2010 17:19, schrieb Andrey Hristov: > > one day you might have to support globalized applications and I am sure > > you will feel very enlightened to fix them :) > > This is my problem and not yours > > There are thousands of scripts that are not big applications > and running well, are secure and clear designed and simply > working since years +1 > So why in the world would you like to kill them braindead without > any valid reason, and "i do not like something" is not a valid > reason because nobody forces you to use such things in your > scripts Not using (a small number of) globals needs either: * functions that take everthing that they need in arguments. I tried that 30 years ago and never did it again, functions with 15 arguments are unweildy &* hard to maintain. * Use OO. That means a whole step up in design, not always justified in small scripts. OO is not always the answer. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php #include