php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #55360 No XSL Error Handling in PHP5
Submitted: 2011-08-04 12:01 UTC Modified: 2014-10-26 16:19 UTC
Votes:6
Avg. Score:3.8 ± 0.9
Reproduced:4 of 4 (100.0%)
Same Version:4 (100.0%)
Same OS:3 (75.0%)
From: osweb at ithink dot ch Assigned: salathe (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant 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: osweb at ithink dot ch
New email:
PHP Version: OS:

 

 [2011-08-04 12:01 UTC] osweb at ithink dot ch
Description:
------------
---
From manual page: http://www.php.net/xsl.examples
---

The above page states that “For the sake of simplicity there's no error handling 
on this code”, which suggests that error handling would have been possible. But 
there seems to be no error handling possible whatsoever in PHP5 XSL processing.

Expected result:
----------------
Documentation on how to obtain an output of errors from XSLTProcessor.

Actual result:
--------------
No documentation on error handling.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-01-03 19:44 UTC] philip@php.net
That quote is from a user comment. I suspect they wanted to write an example but 
not worry about whether, for example, $xslDoc is an object. So if ($foo) { $foo-
>bar(); } vs simply $foo->bar(); 

However, it's a reasonable request. We should add an example that utilizes 
ext/libxml for error handling here. See:

http://php.net/manual/en/book.libxml.php
 [2013-01-03 19:44 UTC] philip@php.net
-Status: Open +Status: Analyzed
 [2014-10-26 16:19 UTC] salathe@php.net
Automatic comment from SVN on behalf of salathe
Revision: http://svn.php.net/viewvc/?view=revision&revision=335141
Log: basic example of libxml error handling for xslt (doc bug #55360)
 [2014-10-26 16:19 UTC] salathe@php.net
-Status: Analyzed +Status: Closed -Assigned To: +Assigned To: salathe
 [2014-10-26 16:19 UTC] salathe@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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 22:01:29 2024 UTC