summaryrefslogtreecommitdiff
path: root/Zend/tests/bug19859.phpt
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2003-07-03 09:22:35 +0000
committerStanislav Malyshev <stas@php.net>2003-07-03 09:22:35 +0000
commit3f0d60f7497bbf8e60cad784be93fb5d10dc42d3 (patch)
tree3fb0c756b6d1f19fd4815727769757243226e7b4 /Zend/tests/bug19859.phpt
parent5a7b07701bb0f20e62195e0d1a273601106181bf (diff)
downloadphp-git-3f0d60f7497bbf8e60cad784be93fb5d10dc42d3.tar.gz
add test for Bug #19859
Diffstat (limited to 'Zend/tests/bug19859.phpt')
-rw-r--r--Zend/tests/bug19859.phpt22
1 files changed, 22 insertions, 0 deletions
diff --git a/Zend/tests/bug19859.phpt b/Zend/tests/bug19859.phpt
new file mode 100644
index 0000000000..b71d0dfdc0
--- /dev/null
+++ b/Zend/tests/bug19859.phpt
@@ -0,0 +1,22 @@
+--TEST--
+Bug #19859 __call() does not catch call_user_func_array() calls
+--SKIPIF--
+<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 is needed'); ?>
+--FILE--
+<?php
+class test
+{
+ function __call($method,$args)
+ {
+ print "test::__call invoked for method '$method'\n";
+ }
+}
+$x = new test;
+$x->fake(1);
+call_user_func_array(array($x,'fake'),array(1));
+call_user_func(array($x,'fake'),2);
+?>
+--EXPECT--
+test::__call invoked for method 'fake'
+test::__call invoked for method 'fake'
+test::__call invoked for method 'fake'