From:             z...@php.net
Operating system: Linux and Windows
PHP version:      5.2.8
PHP Bug Type:     Reflection related
Bug description:  ReflectionFunction::getParameters() retuns null

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 bug report at http://bugs.php.net/?id=47058&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=47058&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=47058&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=47058&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=47058&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47058&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=47058&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=47058&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=47058&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=47058&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=47058&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=47058&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=47058&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=47058&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=47058&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=47058&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=47058&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=47058&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=47058&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=47058&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=47058&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=47058&r=mysqlcfg

Reply via email to