Parsing non-wellformed XML

I just found out that Christian added a patch to PHP 5.1 that allows the parsing of non-welformed XML documents.

The thing is that a non-welformed XML document is no XML document at all and therefore such thing should never be possible. Adding those features to PHP promotes the use of using bad XML over trying to fix the XML documents in the first place. This might have a huge impact as PHP is soo widely used that people just care less about non-wellformed XML. This feature should not be in PHP, and if you ask me Daniel shouldn't have added this to libxml2 in the first place.

I would urge Christian to restrict the use of this function drastically, perhaps with forcing the display of the warnings, or with a configure switch to allow this silly feature to be used.

Comments

"Forcing the display of errors" is now added to CVS. You can't turn off the display of parse errors with the @ character or error_reporting() anymore.

Add Comment

Name:
Email:

Will not be posted. Please leave empty instead of filling in garbage though!
Comment:

Please follow the reStructured Text format. Do not use the comment form to report issues in software, use the relevant issue tracker. I will not answer them here.


All comments are moderated

Life Line