Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16685 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20159 invoked by uid 1010); 15 Jun 2005 14:12:22 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 20144 invoked from network); 15 Jun 2005 14:12:22 -0000 Received: from unknown (HELO php.net) (127.0.0.1) by localhost with SMTP; 15 Jun 2005 14:12:22 -0000 X-Host-Fingerprint: 212.202.40.148 port-212-202-40-148.dynamic.qsc.de Received: from ([212.202.40.148:25178] helo=localhost.localdomain) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id FE/11-20931-54730B24 for ; Wed, 15 Jun 2005 10:12:21 -0400 Message-ID: To: internals@lists.php.net Date: Wed, 15 Jun 2005 16:12:24 +0200 User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 212.202.40.148 Subject: forward compatibility "public" in 4.4 From: lsmith@php.net (Lukas Smith) Hi, A while ago someone on IRC suggested that it might be a good idea to add "public" to PHP 4.x for forward compatibility. I brought it up again on IRC yesterday and several prominent members of the php core community said it would be a good idea to add to the 4.4 branch. The patch seems to be a 3 liner in the zend_language_scanner.l file. Atleast that worked for me. Maybe there is a better/cleaner solution, but either way its not going to have drastic technical implications. Its mainly a political decision to make. I think its a good idea to have, to make it somewhat possible to prepare for the PHP5 E_STRICT world, while still developing PHP4 compatible code. I could for example see this help increase the PHP5 adoption inside PEAR, since this would allow us to make some packages E_STRICT compatible without throwing out PHP4 compatibility (inside PEAR we consider increased major PHP versions to be a BC break, but not minor versions). regards, Lukas