summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionExtension_bug66218.phpt
blob: e263624bada99f381d978f3e9573537b6ac1f163 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--TEST--
ReflectionExtension::getFunctions() ##6218 zend_register_functions breaks reflection
--SKIPIF--
<?php
if (!extension_loaded('reflection')) print 'skip missing reflection extension';
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