php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #37771 xml_parse's return value is incorrect.
Submitted: 2006-06-09 20:24 UTC Modified: 2006-06-09 20:26 UTC
From: colder@php.net Assigned: colder (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: colder@php.net
New email:
PHP Version: OS:

 

 [2006-06-09 20:24 UTC] colder@php.net
Description:
------------
According to the proto and the source[1]:

xml_parse() is ment to return an int. &return.success; entity as  return value is thus incorrect.

Patch is following[2].


[1.1] http://lxr.php.net/source/php-src/ext/xml/xml.c#1327
[1.2] http://lxr.php.net/source/php-src/ext/xml/compat.c#502

[2] http://patches.colder.ch/xml-parse.patch?color




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-09 20:26 UTC] colder@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2020-02-07 06:11 UTC] phpdocbot@php.net
Automatic comment on behalf of colder
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=f918be156ed737c9f1974b4ae47e25cdcdebe099
Log: Fix #37771 (Incorrect return value; spotted by Elazar)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Nov 19 22:00:02 2025 UTC