ID:               47058
 Updated by:       fel...@php.net
 Reported By:      z...@php.net
-Status:           Open
+Status:           Bogus
 Bug Type:         Reflection related
 Operating System: Linux and Windows
 PHP Version:      5.2.8
 New Comment:

Hi Zoe, this is expected. As of 5.3 we have added all missing arginfo
for all ext/*, then we have:

ZEND_BEGIN_ARG_INFO_EX(arginfo_gzopen, 0, 0, 2)
        ZEND_ARG_INFO(0, filename)
        ZEND_ARG_INFO(0, mode)
        ZEND_ARG_INFO(0, use_include_path)
ZEND_END_ARG_INFO()

That helps reflection to know about the param name, number of
parameters, if the param(s) is/are by ref.

Prior 5.3, few extensions did make use of the arginfo (the
ZEND_BEGIN_ARG_INFO_EX stuff).


Previous Comments:
------------------------------------------------------------------------

[2009-01-09 20:48:10] z...@php.net

Description:
------------
ReflectionFunction::getParameters() returns an empty array for some
(not all) functions which have parameters.

This feature works correctly in PHP53, as far as I can tell the code to
make it work was added on 11/08/2008 by cseiler, there is no bug
reference in the CVS comment so I don't think this is a duplicate,
apologies if there is and I have failed to find it.

Reproduce code:
---------------
http://pastebin.ca/1304533

Note: PHP needs to be built with zlib to run this.

Expected result:
----------------
As shown in the test case above

Actual result:
--------------
array(0) {
}


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=47058&edit=1

Reply via email to