ID:          43089
 Updated by:  [EMAIL PROTECTED]
 Reported By: mike at silverorange dot com
-Status:      Open
+Status:      Bogus
 Bug Type:    DOM XML related
 PHP Version: 5.2.4
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

The error is from by PHP, not libxml which libxml_use_internal_errors()
corresponds to.


Previous Comments:
------------------------------------------------------------------------

[2007-10-23 19:02:58] mike at silverorange dot com

Description:
------------
When libxml_use_internal_errors() is used, DOMDocument::loadXML() still
causes a general PHP warning to be raised when passed an empty string.

If this is by design, the documentation should mention this warning
will be triggered if an empty string is used.

Reproduce code:
---------------
$errors = libxml_use_internal_errors(true);

$document = new DOMDocument();
var_dump($document->loadXML(''));
       
libxml_clear_errors();
libxml_use_internal_errors($errors);

Expected result:
----------------
bool(false)

Actual result:
--------------
Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: Empty
string supplied as input

bool(false)


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=43089&edit=1

Reply via email to