php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #52210 simplexml_load_file should give type hint to SimpleXMLElement in phpdoc
Submitted: 2010-06-30 13:59 UTC Modified: 2015-01-29 20:50 UTC
From: ch@php.net Assigned: requinix (profile)
Status: Closed Package: SimpleXML related
PHP Version: 5.3.2 OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ch@php.net
New email:
PHP Version: OS:

 

 [2010-06-30 13:59 UTC] 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.





Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 22:01:28 2024 UTC