fix #38160: 'var' no longer produces a E_STRICT warning

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@218039 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Nuno Lopes 2006-08-12 16:44:18 +00:00
parent ca562b60e8
commit 1531f5bc77

View file

@ -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 @@ $obj2->printHello(); // Shows Public, Protected2, not Private
<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.
</simpara>
</note>
</sect2>