|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78877 LIBXML_PARSEHUGE output formatting
Submitted: 2019-11-28 13:55 UTC Modified: 2019-11-28 15:57 UTC
From: kieran at miami-nice dot co dot uk Assigned:
Status: Open Package: DOM XML related
PHP Version: 7.3.12 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: kieran at miami-nice dot co dot uk
New email:
PHP Version: OS:


 [2019-11-28 13:55 UTC] kieran at miami-nice dot co dot uk
I added LIBXML_PARSEHUGE to a rather large test suite and it instantly changed the formatting of a lot of tests. 

I thought it could be related to but cmb linked me to

I think it's a possible PHP bug because the output doesn't seem to change on Python but I'm not sure.

LIBXML_PARSEHUGE actually looks the more correct output, as it matches the input string.

Test script:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-11-28 14:12 UTC]
Ah, I thought it was about the differences between PHP < 7.3.0 and
>= 7.3.0!  If it's about the different output with and without
LIBXML_PARSEHUGE, it can't be related to the mentioned bug fixes,
since these have only been applied to PHP 7.3+.
 [2019-11-28 15:57 UTC] kieran at miami-nice dot co dot uk
> it's about the different output with and without LIBXML_PARSEHUGE

 [2019-12-14 16:49 UTC] drtechno at mail dot com
I would try uninstalling it and making sure it has a path assigned, then reinstall it.

like this:
pip uninstall lxml
sudo apt-get purge lxml
add the parsers to the PATH:
export PATH=/home/hsundara/packages_installed/libxslt-1.1.28/bin:/home/hsundara/packages_installed/libxml2-2.9.1/bin:$PATH
then install:
pip install lxml --install-option="--auto-rpath"
sudo apt-get install lxml --install-option="--auto-rpath"
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Jul 25 10:01:23 2021 UTC