Skip to content

Commit

Permalink
Merge branch 'PHP-5.4' into PHP-5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
bwoebi committed Jun 15, 2014
2 parents 2c32759 + a84a2d4 commit 4555779
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tests/classes/bug63462.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
Test script to verify that magic methods should be called only once when accessing an unset property.
--CREDITS--
Marco Pivetta <[email protected]>
--XFAIL--
Bug 63462 is not yet fixed
--FILE--
<?php
class Test {
Expand All @@ -20,7 +18,7 @@ class Test {
}

function __get($name) {
echo '__get ' . $name . "\n";
echo '__get ' . $name;
return $this->$name;
}

Expand Down Expand Up @@ -54,13 +52,13 @@ $test->privateProperty = 'value';

--EXPECTF--
__get nonExisting
Notice: Undefined index: nonExisting in %__set__get_006.php on line %d
Notice: Undefined property: Test::$nonExisting in %sbug63462.php on line %d
__get publicProperty
Notice: Undefined index: publicProperty in %__set__get_006.php on line %d
Notice: Undefined property: Test::$publicProperty in %sbug63462.php on line %d
__get protectedProperty
Notice: Undefined index: protectedProperty in %__set__get_006.php on line %d
Notice: Undefined property: Test::$protectedProperty in %sbug63462.php on line %d
__get privateProperty
Notice: Undefined index: privateProperty in %__set__get_006.php on line %d
Notice: Undefined property: Test::$privateProperty in %sbug63462.php on line %d
__isset nonExisting
__isset publicProperty
__isset protectedProperty
Expand Down

0 comments on commit 4555779

Please sign in to comment.