Annotation of embedaddon/php/ext/reflection/tests/ReflectionExtension_bug66218.phpt, revision 1.1

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>