On Sat, 12 Aug 2006 16:44:18 -0000 [EMAIL PROTECTED] ("Nuno Lopes") wrote:
> nlopess Sat Aug 12 16:44:18 2006 UTC > > Modified files: > /phpdoc/en/language/oop5 visibility.xml > Log: > fix #38160: 'var' no longer produces a E_STRICT warning > > http://cvs.php.net/viewvc.cgi/phpdoc/en/language/oop5/visibility.xml?r1=1.8&r2=1.9&diff_format=u > Index: phpdoc/en/language/oop5/visibility.xml > diff -u phpdoc/en/language/oop5/visibility.xml:1.8 > phpdoc/en/language/oop5/visibility.xml:1.9 --- > phpdoc/en/language/oop5/visibility.xml:1.8 Mon Aug 29 15:51:56 > 2005 +++ phpdoc/en/language/oop5/visibility.xml Sat Aug 12 > 16:44:18 2006 @@ -1,5 +1,5 @@ <?xml version="1.0" > encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> > +<!-- $Revision: 1.9 $ --> > <sect1 id="language.oop5.visibility"> > <title>Visibility</title> > <para> > @@ -74,10 +74,9 @@ > <note> > <simpara> > The PHP 4 method of declaring a variable with the > - <emphasis>var</emphasis> keyword is no longer valid > - for PHP 5 objects. For compatibility a variable declared > - in php will be assumed with public visibility, and a > - <constant>E_STRICT</constant> warning will be issued. > + <emphasis>var</emphasis> keyword is still supported for > compatibility > + reasons (as a synonym for the public keyword). In PHP 5 before > 5.2.0, its > + usage would generate an <constant>E_STRICT</constant> warning. 5.1.3 and later does not raise any warning. Anything before does (in the 5.x tree :). cheers, -- Pierre