Bug #66218 [Opn->Asn]: zend_register_functions breaks reflection
Edit report at https://bugs.php.net/bug.php?id=66218&edit=1
ID: 66218
Updated by: remi@php.net
Reported by: remi@php.net
-Summary: zend_register_functions issue break reflection
+Summary: zend_register_functions breaks reflection
-Status: Open
+Status: Assigned
Type: Bug
Package: Reflection related
Operating System: irrevelant
PHP Version: 5.5.6
-Assigned To:
+Assigned To: remi
Block user comment: N
Private report: N
New Comment:
Last patch include the 2 new tests.
Previous Comments:
------------------------------------------------------------------------
[2013-12-02 16:02:04] remi@php.net
The following patch has been added/updated:
Patch Name: reflection.patch
Revision: 1386000124
URL: https://bugs.php.net/patch-display.php?bug=66218&patch=reflection.patch&revision=1386000124
------------------------------------------------------------------------
[2013-12-02 14:41:43] remi@php.net
The following patch has been added/updated:
Patch Name: ReflectionExtension_bug66218.phpt
Revision: 1385995303
URL: https://bugs.php.net/patch-display.php?bug=66218&patch=ReflectionExtension_bug66218.phpt&revision=1385995303
------------------------------------------------------------------------
[2013-12-02 14:13:50] remi@php.net
The following patch has been added/updated:
Patch Name: reflection.patch
Revision: 1385993630
URL: https://bugs.php.net/patch-display.php?bug=66218&patch=reflection.patch&revision=1385993630
------------------------------------------------------------------------
[2013-12-02 13:42:26] remi@php.net
The following patch has been added/updated:
Patch Name: bug66218.phpt
Revision: 1385991746
URL: https://bugs.php.net/patch-display.php?bug=66218&patch=bug66218.phpt&revision=1385991746
------------------------------------------------------------------------
[2013-12-02 13:34:13] remi@php.net
Description:
------------
Functions registered using zend_register_functions instead of zend_module_entry.functions are not
seen on reflection.
Ex: additional_functions from api_module_entry.
Ex: in CLI, dl, cli_set_process_title and cli_get_process_title
Note: also affects functions overrided in extension (should be be reported in extension, where
overrided, not in original extension)
Test script:
---------------
Affected test
- php --re standard
- get_extension_funcs("standard"));
- $r=new ReflectionExtension('standard'); print_r($r->getFunctions());
Expected result:
----------------
dl, cli_set_process_title and cli_get_process_title in list
Actual result:
--------------
dl, cli_set_process_title and cli_get_process_title missing
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66218&edit=1
Thread (7 messages)