mirror of
https://github.com/php/php-src.git
synced 2025-01-25 21:23:45 +08:00
20 lines
337 B
Plaintext
20 lines
337 B
Plaintext
|
--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
|
||
|
|