note 75938 added to migration5.incompatible
| From: | kemaldjakman at osu1 dot php dot net | Date: | Fri, 22 Jun 2007 13:11:15 +0000 |
| Subject: | note 75938 added to migration5.incompatible | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-127887@lists.php.net to get a copy of this message | ||
The handling of accessing empty property of a class error has also changed:
<?php
class Foo {
var $Bar = 'xxx';
function F() {
echo $this->$Bar;
}
}
$Obj = new Foo();
$Obj->F();
?>
Notice the $ sign after object dereference opr? $Bar is empty inside method F. PHP4 would only
generate a warning, PHP5 throws a fatal error
----
Server IP: 69.147.83.197
Probable Submitter: 82.95.51.15
----
Manual Page -- http://www.php.net/manual/en/migration5.incompatible.php
Edit -- https://master.php.net/note/edit/75938
Del: integrated -- https://master.php.net/note/delete/75938/integrated
Del: useless -- https://master.php.net/note/delete/75938/useless
Del: bad code -- https://master.php.net/note/delete/75938/bad+code
Del: spam -- https://master.php.net/note/delete/75938/spam
Del: non-english -- https://master.php.net/note/delete/75938/non-english
Del: in docs -- https://master.php.net/note/delete/75938/in+docs
Del: other reasons-- https://master.php.net/note/delete/75938
Reject -- https://master.php.net/note/reject/75938
Search -- https://master.php.net/manage/user-notes.php