Edit report at http://bugs.php.net/bug.php?id=53991&edit=1
ID: 53991 Updated by: [email protected] Reported by: [email protected] Summary: SimpleXMLElement::__construct shows no params via ReflectionMethod -Status: Open +Status: Closed Type: Bug Package: SimpleXML related Operating System: Ubuntu PHP Version: 5.3.5 -Assigned To: +Assigned To: felipe Block user comment: N Private report: N New Comment: This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2011-02-11 22:10:50] [email protected] Automatic comment from SVN on behalf of felipe Revision: http://svn.php.net/viewvc/?view=revision&revision=308262 Log: - Fixed bug #53991 (SimpleXMLElement::__construct shows no params via ReflectionMethod) ------------------------------------------------------------------------ [2011-02-11 04:54:58] [email protected] 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 this bug report at http://bugs.php.net/bug.php?id=53991&edit=1
