|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27479 Dont report errors on domxml_open_mem
Submitted: 2004-03-03 06:02 UTC Modified: 2004-03-11 09:27 UTC
From: pet at iv dot ua Assigned:
Status: No Feedback Package: DOM XML related
PHP Version: 4.3.4 OS: FreeBSD 5.2.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
50 - 36 = ?
Subscribe to this entry?

 [2004-03-03 06:02 UTC] pet at iv dot ua
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);

	echo "Error found"
	echo "Document valid"

Expected result:
Error found

Actual result:
Document valid


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-03 06:10 UTC]
Works for me.

Which libxml2 version are you using (phpinfo() should 
tell you that)?

 [2004-03-03 07:34 UTC] pet at iv dot ua
DOM/XML API Version  20020815  
libxml Version  20607  

Configure Command
'./configure' '--enable-versioning' '--enable-memory-limit' '--with-layout=GNU' '--with-zlib-dir=/usr' '--disable-all' '--with-regex=php' '--disable-cli' '--enable-ctype' '--with-dom=/usr/local' '--with-dom-xslt=/usr/local' '--with-dom-exslt=/usr/local' '--with-iconv-dir=/usr/local' '--with-iconv=/usr/local' '--with-mnogosearch=/usr/local' '--with-mysql=/usr/local' '--enable-overload' '--with-pcre-regex=yes' '--enable-posix' '--enable-tokenizer' '--with-expat-dir=/usr/local' '--enable-xml' '--enable-xslt' '--with-xslt-sablot=/usr/local' '--with-zlib=yes' '--with-apxs2=/usr/local/sbin/apxs' '--prefix=/usr/local' 'i386-portbld-freebsd5.2.1'
 [2004-03-03 07:51 UTC] pet at iv dot ua
xml must be:

$xml = '<!DOCTYPE test [ <!ELEMENT test (tt)*> 
<!ELEMENT tt (#PCDATA)> ]><test><tt></test>';
 [2004-03-06 13:52 UTC]
Please try using this CVS snapshot:
For Windows:

Works fine (prints errors found) with latest CVS. 
 [2004-03-11 09:27 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 15:01:32 2024 UTC