Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50974 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95101 invoked from network); 9 Dec 2010 19:06:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Dec 2010 19:06:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=piccoloprincipeazzurro@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=piccoloprincipeazzurro@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: piccoloprincipeazzurro@gmail.com X-Host-Fingerprint: 209.85.212.42 mail-vw0-f42.google.com Received: from [209.85.212.42] ([209.85.212.42:53732] helo=mail-vw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C6/BB-32270-698210D4 for ; Thu, 09 Dec 2010 14:05:58 -0500 Received: by vws11 with SMTP id 11so1824795vws.29 for ; Thu, 09 Dec 2010 11:05:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=kUJNnaGZW8ET3VkAxxR+L9JoiWZvNHLqNUedXYCArZg=; b=ftNoJuAPI4HJaCzhhQ2uHpkea/mnFkiUO3kXoD3ciCgRhTf2P17xZ4BtDciZJ23SJz zm96WH65Focv5lRHqofgO4TcgvTukoQ92+aigRla7s1TDU1NO7u/ZYQEYLM3ub3Ahvex hmwqe7A8N8S3GcQkM10mFLO/0j5YdQjCSvhmA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=o42OtiS80f53pXTHqLdEOXD3PEKYNt0XypfxRwQ2Mc1qZYOeavVb60/PBHw+IwqLCS tthvBkE0PfVcn//neXDTxGa7Fx0JO9yrfEzRcrNmp4bKYsAJ3R996pUMQmgI5xKHmKC9 jiyZ5Oo3DcO45Yag3GXL/zDBBeKQdM514NTsA= MIME-Version: 1.0 Received: by 10.229.238.148 with SMTP id ks20mr8218515qcb.262.1291921555203; Thu, 09 Dec 2010 11:05:55 -0800 (PST) Received: by 10.229.17.21 with HTTP; Thu, 9 Dec 2010 11:05:54 -0800 (PST) In-Reply-To: References: <4D00ABFE.5070403@hristov.com> Date: Thu, 9 Dec 2010 20:05:54 +0100 Message-ID: To: PHP Internals List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Deprecating "global" + $GLOBALS, making $_REQUEST, $_GET, $_POST read-only From: piccoloprincipeazzurro@gmail.com (Giorgio Sironi) On Thu, Dec 9, 2010 at 12:21 PM, Ferenc Kovacs wrote: > And what about global constants? They are also screwing up the Dependency > Injection, and the static functions/properties, and the =A0singletons als= o. > =A0Should we ban those? You got right to the point. It's no use removing this support if the same global state can easily be achieved in other ways, like singletons and statics, and break thousands of applications: then you would simply choose a different programming language. --=20 Giorgio Sironi Piccolo Principe & Web Engineer http://giorgiosironi.blogspot.com http://twitter.com/giorgiosironi