com php-src: Also verify nesting with dynamically called static methods: Zend/tests/methods-on-non-objects-nested-calls-static.phpt
| From: | Tjerk Anne Meesters | Date: | Sun, 06 Jul 2014 13:12:15 +0000 |
| Subject: | com php-src: Also verify nesting with dynamically called static methods: Zend/tests/methods-on-non-objects-nested-calls-static.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-82135@lists.php.net to get a copy of this message | ||
Commit: d7156c1b315b3ff753cb0e061a17f177fb44eca6
Author: Timm Friebe <thekid@thekid.de> Sun, 6 Jul 2014 15:12:15 +0200
Parents: 9dbc91f2ff28973d9a0f0e38ccf5e2b1494ce087
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d7156c1b315b3ff753cb0e061a17f177fb44eca6
Log:
Also verify nesting with dynamically called static methods
Changed paths:
M Zend/tests/methods-on-non-objects-nested-calls-static.phpt
Diff:
diff --git a/Zend/tests/methods-on-non-objects-nested-calls-static.phpt
b/Zend/tests/methods-on-non-objects-nested-calls-static.phpt
index 9e969b7..bb5768e 100755
--- a/Zend/tests/methods-on-non-objects-nested-calls-static.phpt
+++ b/Zend/tests/methods-on-non-objects-nested-calls-static.phpt
@@ -13,10 +13,18 @@ set_error_handler(function($code, $message) {
});
$x= null;
+$class= 'Nesting';
+$method= 'nested';
var_dump($x->method(Nesting::nested()));
+var_dump($x->method($class::nested()));
+var_dump($x->method($class::{$method}()));
echo "Alive\n";
?>
--EXPECTF--
Called #1
NULL
+Called #2
+NULL
+Called #3
+NULL
Alive