Req #52210 [Com]: simplexml_load_file should give type hint to SimpleXMLElement in phpdoc
Edit report at https://bugs.php.net/bug.php?id=52210&edit=1
ID: 52210
Comment by: cmbecker69 at gmx dot de
Reported by: ch@php.net
Summary: simplexml_load_file should give type hint to
SimpleXMLElement in phpdoc
Status: Open
Type: Feature/Change Request
Package: SimpleXML related
Operating System: *
PHP Version: 5.3.2
Block user comment: N
Private report: N
New Comment:
This is already fixed, see
<http://php.net/manual/en/function.simplexml-load-file.php>.
Previous Comments:
------------------------------------------------------------------------
[2010-06-30 13:59:32] ch@php.net
Description:
------------
The current phpdoc of simplexml_load_file() on
http://de3.php.net/manual/en/function.simplexml-load-file.php
says:
object simplexml_load_file ( string $filename [, string $class_name =
"SimpleXMLElement" [, int $options = 0 [, string $ns [, bool $is_prefix = false
]]]] )
To aide auto-completion in IDEs it would be helpful if the documentation would
be changed to
SimpleXMLElement simplexml_load_file(...)
At least NetBeans seems to auto generate stub .php files from the online documentation.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=52210&edit=1
Thread (3 messages)