php-src/Zend/tests/call_static_002.phpt
2008-06-03 15:36:59 +00:00

29 lines
448 B
PHP

--TEST--
Testing __call and __callstatic with callbacks
--XFAIL--
http://bugs.php.net/bug.php?id=45089
--FILE--
<?php
class Foo {
public function __call($a, $b) {
print "nonstatic\n";
var_dump($a);
}
static public function __callStatic($a, $b) {
print "static\n";
var_dump($a);
}
}
$a = new Foo;
call_user_func(array($a, 'aAa'));
call_user_func(array('Foo', 'aAa'));
?>
--EXPECTF--
nonstatic
unicode(3) "aAa"
static
unicode(3) "aAa"