| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2011-02-11 22:10 UTC] felipe@php.net
  [2011-02-11 22:11 UTC] felipe@php.net
 
-Status:      Open
+Status:      Closed
-Assigned To:
+Assigned To: felipe
  [2011-02-11 22:11 UTC] felipe@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 01:00:02 2025 UTC | 
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 ( )