Commit: dc6f073ce957ce2fe211fdd2a133ff0f22cb6752 Author: Stanislav Malyshev <s...@php.net> Mon, 18 Feb 2013 23:01:42 -0800 Parents: 0c6d903ce7615a7197cb997d67d98058c3ec5d6a Branches: PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=dc6f073ce957ce2fe211fdd2a133ff0f22cb6752 Log: fix tests Changed paths: M Zend/tests/bug52041.phpt M Zend/tests/bug60536_001.phpt M Zend/tests/bug62005.phpt M tests/classes/implicit_instantiation_001.phpt Diff: diff --git a/Zend/tests/bug52041.phpt b/Zend/tests/bug52041.phpt index c4b9f97..96ddaa1 100644 --- a/Zend/tests/bug52041.phpt +++ b/Zend/tests/bug52041.phpt @@ -35,18 +35,30 @@ Notice: Undefined variable: x in %sbug52041.php on line 3 Warning: Creating default object from empty value in %sbug52041.php on line 8 +Notice: Undefined property: a in %sbug52041.php on line 8 + Notice: Undefined variable: x in %sbug52041.php on line 3 +Notice: Undefined property: a in %sbug52041.php on line 9 + Warning: Creating default object from empty value in %sbug52041.php on line 9 +Notice: Undefined property: b in %sbug52041.php on line 9 + Notice: Undefined variable: x in %sbug52041.php on line 3 Warning: Creating default object from empty value in %sbug52041.php on line 10 +Notice: Undefined property: a in %sbug52041.php on line 10 + Notice: Undefined variable: x in %sbug52041.php on line 3 +Notice: Undefined property: a in %sbug52041.php on line 11 + Warning: Creating default object from empty value in %sbug52041.php on line 11 +Notice: Undefined property: b in %sbug52041.php on line 11 + Notice: Undefined variable: x in %sbug52041.php on line 3 Notice: Undefined variable: x in %sbug52041.php on line 3 diff --git a/Zend/tests/bug60536_001.phpt b/Zend/tests/bug60536_001.phpt index 9166467..418b986 100644 --- a/Zend/tests/bug60536_001.phpt +++ b/Zend/tests/bug60536_001.phpt @@ -3,18 +3,18 @@ Bug #60536 (Traits Segfault) --FILE-- <?php trait T { private $x = 0; } -class X { +class X { use T; } class Y extends X { use T; function x() { - return ++$this->x; + return ++$this->x; } } class Z extends Y { function z() { - return ++$this->x; + return ++$this->x; } } $a = new Z(); @@ -22,4 +22,6 @@ $a->x(); echo "DONE"; ?> --EXPECTF-- + +Notice: Undefined property: x in %s on line 14 DONE diff --git a/Zend/tests/bug62005.phpt b/Zend/tests/bug62005.phpt index c99b287..2f83412 100644 --- a/Zend/tests/bug62005.phpt +++ b/Zend/tests/bug62005.phpt @@ -9,6 +9,8 @@ function add_points($player, $points) { add_points(NULL, 2); --EXPECTF-- Warning: Creating default object from empty value in %sbug62005.php on line %d + +Notice: Undefined property: energy in %sbug62005.php on line 3 stdClass Object ( [energy] => 2 diff --git a/tests/classes/implicit_instantiation_001.phpt b/tests/classes/implicit_instantiation_001.phpt index 8d2f32d..19ddbe2 100644 --- a/tests/classes/implicit_instantiation_001.phpt +++ b/tests/classes/implicit_instantiation_001.phpt @@ -20,7 +20,7 @@ foreach($c as $name => $value) { echo "\n --> Attempting implicit conversion to object using increment...\n"; $c->$name->prop++; $c->$name = $value; // reset value in case implicit conversion was successful - + echo "\n --> Attempting implicit conversion to object using assignment...\n"; $c->$name->prop = "Implicit instantiation!"; $c->$name = $value; // reset value in case implicit conversion was successful @@ -41,6 +41,8 @@ var_dump($c); Warning: Creating default object from empty value in %s on line 18 +Notice: Undefined property: prop in %s on line 18 + --> Attempting implicit conversion to object using assignment... Warning: Creating default object from empty value in %s on line 22 @@ -49,12 +51,16 @@ Warning: Creating default object from empty value in %s on line 22 Warning: Creating default object from empty value in %s on line 26 +Notice: Undefined property: prop in %s on line 26 + ---( $c->emptyString )--- --> Attempting implicit conversion to object using increment... Warning: Creating default object from empty value in %s on line 18 +Notice: Undefined property: prop in %s on line 18 + --> Attempting implicit conversion to object using assignment... Warning: Creating default object from empty value in %s on line 22 @@ -63,12 +69,16 @@ Warning: Creating default object from empty value in %s on line 22 Warning: Creating default object from empty value in %s on line 26 +Notice: Undefined property: prop in %s on line 26 + ---( $c->null )--- --> Attempting implicit conversion to object using increment... Warning: Creating default object from empty value in %s on line 18 +Notice: Undefined property: prop in %s on line 18 + --> Attempting implicit conversion to object using assignment... Warning: Creating default object from empty value in %s on line 22 @@ -77,6 +87,8 @@ Warning: Creating default object from empty value in %s on line 22 Warning: Creating default object from empty value in %s on line 26 +Notice: Undefined property: prop in %s on line 26 + ---( $c->boolTrue )--- --> Attempting implicit conversion to object using increment... -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php