Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16693 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72648 invoked by uid 1010); 15 Jun 2005 15:37:58 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 72633 invoked from network); 15 Jun 2005 15:37:58 -0000 Received: from unknown (HELO zend.com) (127.0.0.1) by localhost with SMTP; 15 Jun 2005 15:37:58 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:44460] helo=mail.zend.com) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id 45/38-20931-45B40B24 for ; Wed, 15 Jun 2005 11:37:57 -0400 Received: (qmail 1635 invoked from network); 15 Jun 2005 15:37:52 -0000 Received: from shire.zend.office (10.1.2.160) by internal.zend.office with SMTP; 15 Jun 2005 15:37:52 -0000 Date: Wed, 15 Jun 2005 18:37:52 +0300 (IDT) X-X-Sender: frodo@shire.zend.office To: Sebastian Mendel cc: internals@lists.php.net In-Reply-To: <83.47.20931.45940B24@pb1.pair.com> Message-ID: References: <42B03CF6.9000000@php.net> <20050615171433.22b4deb0.pierre@dotgeek.org> <83.47.20931.45940B24@pb1.pair.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] forward compatibility "public" in 4.4 From: stas@zend.com (Stanislav Malyshev) SM>>IMHO is 'var' the only thing that produces NOTICES in PHP 5 what can SM>>not be changed if this app should run in both Versions 4 and 5, SM>>others, like '= new' and '=& new' can easily be adopt by just removing SM>>the '&' without getting any NOTICE in any VERSION Here's something I am missing - if you say notices are so much rpoblem, why not remove them? SM>>i think 'var' is the most important reason for the current delay in the SM>>move to PHP 5! Eh? Why is that? Is it so hard to write one one-line script that would replace ALL vars to publics? SM>>i would even go a step further: SM>> SM>>-"var" { SM>>+("var"|"public"|"private"|"protected") { Ouch. So you could write code that would run on PHP4 perfectly well and break on PHP5? -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115