cvs: ZendEngine2 /tests bug26802.phpt
| From: | Zeev Suraski | Date: | Wed, 11 Feb 2004 10:48:20 +0000 |
| Subject: | cvs: ZendEngine2 /tests bug26802.phpt | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-2348@lists.php.net to get a copy of this message | ||
zeev Wed Feb 11 05:48:20 2004 EDT
Modified files:
/ZendEngine2/tests bug26802.phpt
Log:
Fix and clarify the test case
http://cvs.php.net/diff.php/ZendEngine2/tests/bug26802.phpt?r1=1.5&r2=1.6&ty=u
Index: ZendEngine2/tests/bug26802.phpt
diff -u ZendEngine2/tests/bug26802.phpt:1.5 ZendEngine2/tests/bug26802.phpt:1.6
--- ZendEngine2/tests/bug26802.phpt:1.5 Sat Jan 17 07:59:12 2004
+++ ZendEngine2/tests/bug26802.phpt Wed Feb 11 05:48:20 2004
@@ -3,47 +3,35 @@
--FILE--
<?php
-function func() {
- echo __METHOD__ . "\n";
-}
-
-function work() {
+function global_func()
+{
echo __METHOD__ . "\n";
}
-$function = 'func';
+$function = 'global_func';
$function();
class foo
{
- static $method = 'func';
-
- static public function bar() {
- echo __METHOD__ . "\n";
- }
+ static $method = 'global_func';
- static public function func() {
+ static public function foo_func()
+ {
echo __METHOD__ . "\n";
}
}
-foo::bar();
-
-$static_method = "foo::bar";
-
-$static_method();
-
/* The following is a BC break with PHP 4 where it would
* call foo::fail. In PHP 5 we first evaluate static class
* properties and then do the function call.
*/
-$method = 'fail';
+$method = 'foo_func';
foo::$method();
+
+
?>
===DONE===
--EXPECT--
-func
-foo::bar
-foo::bar
-func
+global_func
+foo::foo_func
===DONE===