cvs: php-src /ext/standard/tests/general_functions bug36011.phpt
| From: | Marcus Boerger | Date: | Sat, 14 Jan 2006 15:21:46 +0000 |
| Subject: | cvs: php-src /ext/standard/tests/general_functions bug36011.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-36511@lists.php.net to get a copy of this message | ||
helly Sat Jan 14 15:21:46 2006 UTC
Added files:
/php-src/ext/standard/tests/general_functions bug36011.phpt
Log:
- Fixed bug #36011
http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/tests/general_functions/bug36011.phpt?view=markup&rev=1.1
Index: php-src/ext/standard/tests/general_functions/bug36011.phpt
+++ php-src/ext/standard/tests/general_functions/bug36011.phpt
--TEST--
Bug #36011 (Strict errormsg wrong for call_user_func() and the likes)
--FILE--
<?php
class TestClass
{
static function test()
{
echo __METHOD__ . "()\n";
}
function whee()
{
array_map(array('TestClass', 'test'), array('array_value'));
}
function whee4()
{
call_user_func(array('TestClass', 'test'));
}
static function whee5()
{
call_user_func(array('TestClass', 'test'));
}
}
TestClass::test();
$a = new TestClass();
$a->whee();
$a->whee4();
$a->whee5();
TestClass::whee5();
?>
===DONE===
--EXPECTF--
TestClass::test()
TestClass::test()
TestClass::test()
TestClass::test()
TestClass::test()
===DONE===