mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
20 lines
408 B
PHP
20 lines
408 B
PHP
--TEST--
|
|
ReflectionExtension::getFunctions() ##6218 zend_register_functions breaks reflection
|
|
--SKIPIF--
|
|
<?php
|
|
if (PHP_SAPI != "cli") die("skip CLI only test");
|
|
if (!function_exists("dl")) die("skip need dl");
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$r = new ReflectionExtension('standard');
|
|
$t = $r->getFunctions();
|
|
var_dump($t['dl']);
|
|
?>
|
|
Done
|
|
--EXPECTF--
|
|
object(ReflectionFunction)#%d (1) {
|
|
["name"]=>
|
|
string(2) "dl"
|
|
}
|
|
Done
|