Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50960 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53179 invoked from network); 9 Dec 2010 16:56:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Dec 2010 16:56:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@hristov.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=php@hristov.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain hristov.com from 85.92.87.36 cause and error) X-PHP-List-Original-Sender: php@hristov.com X-Host-Fingerprint: 85.92.87.36 iko.gotobg.net Linux 2.6 Received: from [85.92.87.36] ([85.92.87.36:55221] helo=iko.gotobg.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 85/93-32270-A2A010D4 for ; Thu, 09 Dec 2010 11:56:10 -0500 Received: from [77.0.224.33] (helo=[192.168.1.100]) by iko.gotobg.net with esmtpa (Exim 4.69) (envelope-from ) id 1PQjmX-00007h-6Q for internals@lists.php.net; Thu, 09 Dec 2010 18:55:57 +0200 Message-ID: <4D010A16.7040805@hristov.com> Date: Thu, 09 Dec 2010 17:55:50 +0100 User-Agent: Thunderbird 2.0.0.24 (X11/20100411) MIME-Version: 1.0 To: PHP Internals List References: <4D00ABFE.5070403@hristov.com> <4D00CF96.3070701@hristov.com> <4D010093.8090604@thelounge.net> <4D010193.9030603@hristov.com> <4D010669.8020209@thelounge.net> <20101209165222.GA6075@phcomp.co.uk> In-Reply-To: <20101209165222.GA6075@phcomp.co.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - iko.gotobg.net X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - hristov.com X-Source: X-Source-Args: X-Source-Dir: Subject: Re: [PHP-DEV] Deprecating "global" + $GLOBALS, making $_REQUEST, $_GET, $_POST read-only From: php@hristov.com (Andrey Hristov) Alain Williams wrote: > 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. > If all your functions take 15 params I am worried that your program design is flawed, sorry. Andrey