From:             aferreira
Operating system: Ubuntu
PHP version:      5.3.5
Package:          SimpleXML related
Bug Type:         Bug
Bug description:SimpleXMLElement::__construct shows no params via 
ReflectionMethod

Description:
------------
When looking up the SimpleXMLElement::__construct or using any class that
extends 

SimpleXMLElement (the __construct method is final so we can't extend it), 

Reflection reports that the method has no params available, when in fact,
there 

are plenty and the '$data' param is required.

Test script:
---------------
<?php



$ref = new ReflectionClass('SimpleXMLElement');



$constructor = $ref->getConstructor();



print_r($constructor->getParameters());

Expected result:
----------------
Array

(

    'paramname' => 'type'

)

Actual result:
--------------
Array

(

)

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

Reply via email to