diff options
| author | Remi Collet <remi@php.net> | 2013-12-10 16:09:41 +0100 |
|---|---|---|
| committer | Remi Collet <remi@php.net> | 2013-12-10 16:09:41 +0100 |
| commit | 9f4d1ee51c19c50a60284a5687f247785fd26f6a (patch) | |
| tree | ea80b67a7be5e05bd4086f5afd67a3bcc2483f59 /ext/reflection/tests | |
| parent | 552e8b2b4c5708cb90faf148bd99e3f67fa926b5 (diff) | |
| parent | 3e963f8eb44863ef3d758eabe791190b0fd7bb9a (diff) | |
| download | php-git-9f4d1ee51c19c50a60284a5687f247785fd26f6a.tar.gz | |
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
Fixed Bug #66218 zend_register_functions breaks reflection
Diffstat (limited to 'ext/reflection/tests')
| -rw-r--r-- | ext/reflection/tests/ReflectionExtension_bug66218.phpt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/reflection/tests/ReflectionExtension_bug66218.phpt b/ext/reflection/tests/ReflectionExtension_bug66218.phpt new file mode 100644 index 0000000000..e263624bad --- /dev/null +++ b/ext/reflection/tests/ReflectionExtension_bug66218.phpt @@ -0,0 +1,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 |
