0
0
mirror of https://github.com/php/php-src.git synced 2024-12-18 14:30:35 +08:00
php-src/Zend/tests/ns_032.phpt
2020-08-09 22:03:36 +02:00

21 lines
334 B
PHP

--TEST--
032: Namespace support for user functions (php name)
--FILE--
<?php
class Test {
static function foo() {
echo __CLASS__,"::",__FUNCTION__,"\n";
}
}
function foo() {
echo __FUNCTION__,"\n";
}
call_user_func(__NAMESPACE__."\\foo");
call_user_func(__NAMESPACE__."\\test::foo");
?>
--EXPECT--
foo
Test::foo