php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #66218
Patch reflection.patch revision 2013-12-02 16:02 UTC by remi@php.net
revision 2013-12-02 14:13 UTC by remi@php.net
revision 2013-12-02 13:34 UTC by remi
Patch ReflectionExtension_bug66218.phpt revision 2013-12-02 14:41 UTC by remi@php.net
Patch bug66218.phpt revision 2013-12-02 13:42 UTC by remi@php.net

Patch ReflectionExtension_bug66218.phpt for Reflection related Bug #66218

Patch version 2013-12-02 14:41 UTC

Return to Bug #66218 | Download this patch
This patch is obsolete

Obsoleted by patches:

Patch Revisions:

Developer: remi@php.net

--TEST--
ReflectionExtension::getFunctions() ##6218 zend_register_functions issue break reflection
--SKIPIF--
<?php
if (!extension_loaded('reflection')) print 'skip: missing reflection extension';
if (PHP_SAPI != "cli") die("Skip: CLI only test");
?>
--FILE--
<?php
$r = new ReflectionExtension('standard');
$t = $r->getFunctions();
var_dump($t['cli_set_process_title']);
var_dump($t['cli_get_process_title']);
?>
Done
--EXPECTF--
object(ReflectionFunction)#%d (1) {
  ["name"]=>
  string(21) "cli_set_process_title"
}
object(ReflectionFunction)#%d (1) {
  ["name"]=>
  string(21) "cli_get_process_title"
}
Done
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 14:01:29 2024 UTC