mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fixed #63679 ("Dealing with XML errors" documentation example is wrong)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328672 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
2b934de811
commit
ef2c8a7a95
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
|
||||
<chapter xml:id="simplexml.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
|
@ -438,7 +438,7 @@ blah
|
|||
<?php
|
||||
libxml_use_internal_errors(true);
|
||||
$sxe = simplexml_load_string("<?xml version='1.0'><broken><xml></broken>");
|
||||
if (!$sxe) {
|
||||
if ($sxe === false) {
|
||||
echo "Failed loading XML\n";
|
||||
foreach(libxml_get_errors() as $error) {
|
||||
echo "\t", $error->message;
|
||||
|
|
Loading…
Reference in a new issue