mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
ca562b60e8
commit
1531f5bc77
1 changed files with 4 additions and 5 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue