summaryrefslogtreecommitdiff
path: root/Zend/tests/bug63468.phpt
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2012-11-20 12:51:55 +0400
committerDmitry Stogov <dmitry@zend.com>2012-11-20 12:51:55 +0400
commit396c1e990a0e513cf2e8510e9b6f82ab425c9e3a (patch)
tree14053627cff9dd623625c3540d37cefb9a2e3b7a /Zend/tests/bug63468.phpt
parentd412152f31f145bf07b243465cdffa84ceba70be (diff)
downloadphp-git-396c1e990a0e513cf2e8510e9b6f82ab425c9e3a.tar.gz
Fixed bug #63468 (wrong called method as callback with inheritance)
Diffstat (limited to 'Zend/tests/bug63468.phpt')
-rw-r--r--Zend/tests/bug63468.phpt30
1 files changed, 30 insertions, 0 deletions
diff --git a/Zend/tests/bug63468.phpt b/Zend/tests/bug63468.phpt
new file mode 100644
index 0000000000..00b5a41c90
--- /dev/null
+++ b/Zend/tests/bug63468.phpt
@@ -0,0 +1,30 @@
+--TEST--
+Bug #63468 (wrong called method as callback with inheritance)
+--FILE--
+<?php
+class Foo
+{
+ public function run()
+ {
+ return call_user_func(array('Bar', 'getValue'));
+ }
+
+ private static function getValue()
+ {
+ return 'Foo';
+ }
+}
+
+class Bar extends Foo
+{
+ public static function getValue()
+ {
+ return 'Bar';
+ }
+}
+
+$x = new Bar;
+var_dump($x->run());
+--EXPECT--
+string(3) "Bar"
+