1--TEST--
2ReflectionExtension::getFunctions() ##6218 zend_register_functions breaks reflection
3--SKIPIF--
4<?php
5if (!extension_loaded('reflection')) print 'skip missing reflection extension';
6if (PHP_SAPI != "cli") die("skip CLI only test");
7if (!function_exists("dl")) die("skip need dl");
8?>
9--FILE--
10<?php
11$r = new ReflectionExtension('standard');
12$t = $r->getFunctions();
13var_dump($t['dl']);
14?>
15Done
16--EXPECTF--
17object(ReflectionFunction)#%d (1) {
18  ["name"]=>
19  string(2) "dl"
20}
21Done
22