#27479 [Opn->Fbk]: Dont report errors on domxml_open_mem
| From: | chregu@php.net | Date: | Wed, 03 Mar 2004 11:10:46 +0000 |
| Subject: | #27479 [Opn->Fbk]: Dont report errors on domxml_open_mem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-55845@lists.php.net to get a copy of this message | ||
ID: 27479
Updated by: chregu@php.net
Reported By: pet at iv dot ua
-Status: Open
+Status: Feedback
Bug Type: DOM XML related
Operating System: FreeBSD 5.2.1
PHP Version: 4.3.4
New Comment:
Works for me.
Which libxml2 version are you using (phpinfo() should
tell you that)?
chregu
Previous Comments:
------------------------------------------------------------------------
[2004-03-03 06:02:56] pet at iv dot ua
Description:
------------
Its undocumented arguments of function domxml_open_mem
but on previous version php all work.
Note: no return "well-formed" errors.
If document not valid errors returned
Reproduce code:
---------------
//not well-formed document
$xml = '<text><tt></test>';
$dom = domxml_open_mem($xml, DOMXML_LOAD_VALIDATING, $Errors);
if(!Empty($Errors)){
echo "Error found"
}else{
echo "Document valid"
}
Expected result:
----------------
Error found
Actual result:
--------------
Document valid
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27479&edit=1