cvs: ZendEngine2 /tests bug19859.phpt
| From: | Stanislav Malyshev | Date: | Thu, 03 Jul 2003 09:22:35 +0000 |
| Subject: | cvs: ZendEngine2 /tests bug19859.phpt | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-1450@lists.php.net to get a copy of this message | ||
stas Thu Jul 3 05:22:35 2003 EDT
Added files:
/ZendEngine2/tests bug19859.phpt
Log:
add test for Bug #19859
Index: ZendEngine2/tests/bug19859.phpt
+++ ZendEngine2/tests/bug19859.phpt
--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'