summaryrefslogtreecommitdiff
path: root/Zend/tests/lsb_011.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/lsb_011.phpt')
-rw-r--r--Zend/tests/lsb_011.phpt23
1 files changed, 23 insertions, 0 deletions
diff --git a/Zend/tests/lsb_011.phpt b/Zend/tests/lsb_011.phpt
new file mode 100644
index 0000000000..3c5bbbeb6f
--- /dev/null
+++ b/Zend/tests/lsb_011.phpt
@@ -0,0 +1,23 @@
+--TEST--
+ZE2 Late Static Binding call to static::method() from internal function (array)
+--FILE--
+<?php
+
+class Test1 {
+ static function ok() {
+ echo "bug";
+ }
+ static function test() {
+ call_user_func(array("static","ok"));
+ }
+}
+
+class Test2 extends Test1 {
+ static function ok() {
+ echo "ok";
+ }
+}
+Test2::test();
+?>
+--EXPECT--
+ok