mirror of
https://github.com/php/php-src.git
synced 2024-12-17 22:09:12 +08:00
20 lines
337 B
PHP
20 lines
337 B
PHP
--TEST--
|
|
ReflectionFunction::getExtension()
|
|
--FILE--
|
|
<?php
|
|
function foo () {}
|
|
|
|
$function = new ReflectionFunction('sort');
|
|
var_dump($function->getExtension());
|
|
|
|
$function = new ReflectionFunction('foo');
|
|
var_dump($function->getExtension());
|
|
?>
|
|
--EXPECTF--
|
|
object(ReflectionExtension)#%i (1) {
|
|
["name"]=>
|
|
string(8) "standard"
|
|
}
|
|
NULL
|
|
|