Newsgroups: php.internals,php.internals Path: news.php.net Xref: news.php.net php.internals:32270 php.internals:32271 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33975 invoked by uid 1010); 11 Sep 2007 20:01:31 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 33951 invoked from network); 11 Sep 2007 20:01:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Sep 2007 20:01:31 -0000 X-Host-Fingerprint: 80.123.98.46 unknown Received: from [80.123.98.46] ([80.123.98.46:12306] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E9/51-33962-014F6E64 for ; Tue, 11 Sep 2007 16:01:24 -0400 To: internals@lists.php.net,Steph Fox Message-ID: <46E6F3EA.4090801@php.net> Date: Tue, 11 Sep 2007 22:00:42 +0200 User-Agent: Thunderbird 1.5.0.13 (X11/20070824) MIME-Version: 1.0 CC: PHP Developers Mailing List , Ilia Alshanetsky References: <6F509818-65A2-4B17-8C44-6970E815A169@prohost.org> <024701c7f4a0$71273c90$4501a8c0@foxbox> In-Reply-To: <024701c7f4a0$71273c90$4501a8c0@foxbox> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Posted-By: 80.123.98.46 Subject: Re: [PHP-DEV] PHP 5.3 Suggested Feature List From: mike@php.net (Michael Wallner) Steph Fox wrote: >> 18) Introduce concept of "strict classes" that do not permit dynamic >> property creation > > -1, this whole idea just sounds so weird for PHP. Sure, but how PHPish is this fatal error? mike@honeybadger:~/build/php-5.2-debug$ cli -r 'class c{} c::$x=1;' Fatal error: Access to undeclared static property: c::$x in Command line code on line 1 The idea, as far as I understood, was to allow this things with non-strict classes once we have strict classes. Regards, -- Michael