Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21280 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69098 invoked by uid 1010); 19 Dec 2005 10:33:16 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 69083 invoked from network); 19 Dec 2005 10:33:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Dec 2005 10:33:15 -0000 X-Host-Fingerprint: 66.249.82.200 xproxy.gmail.com Linux 2.4/2.6 Received: from ([66.249.82.200:16399] helo=xproxy.gmail.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 16/43-14561-B6C86A34 for ; Mon, 19 Dec 2005 05:33:15 -0500 Received: by xproxy.gmail.com with SMTP id t10so950099wxc for ; Mon, 19 Dec 2005 02:33:13 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=s0zYPClrdJVOojTgCI557njw6ldAuiWkOqtPNXomjt/nDCPo9o3d3cDJL1h6OpuoXwuGdddyg5QCjLKk5/Za1aVg7PaHov1EivVNXgkQuO1kQxeY7eHl1wHSg/fu8RjJ4ha2mQC3nyWZ5lphyQtu6Ci1y7wuf4icPH5X22AlkMw= Received: by 10.70.19.13 with SMTP id 13mr4264949wxs; Mon, 19 Dec 2005 02:33:13 -0800 (PST) Received: by 10.70.132.13 with HTTP; Mon, 19 Dec 2005 02:33:13 -0800 (PST) Message-ID: <7cbefe0f0512190233p1ce93ce9r5e7253ce6ba78fc4@mail.gmail.com> Date: Mon, 19 Dec 2005 15:33:13 +0500 To: internals@lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: 'local' variables From: fnasim@gmail.com (Faisal Nasim) I'm thinking to implement a block-level variable scope support for PHP (Perl's 'my'). It'll be similar to variable scoping as in the functions using a qualifier 'local' (as opposed to 'global'). Once a variable is localized, the only other same-named variable it can use is the global variable through $GLOBALS array. Any thoughts? Faisal