|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24661 xmlCleanupParser called multiple times and causes crash
Submitted: 2003-07-15 05:16 UTC Modified: 2003-07-16 06:24 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: Assigned:
Status: Not a bug Package: *XML functions
PHP Version: 5CVS-2003-07-15 (dev) OS: win32
Private report: No CVE-ID: None
 [2003-07-15 05:16 UTC]
dom, simplexml etc. all call xmlCleanupParser in their MSHUTDOWN functions and cause a crash.

Reproduce code:
Just run any simple script under the debugger to catch the exception - it doesn't even need to use xml related functions.

Expected result:
No crash ;)

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-15 13:48 UTC] cw at centerwave dot de
Could be the reason for #24634?
 [2003-07-15 13:51 UTC]
You wouldn't happen to be using libxml2-2.5.8 would you?
 [2003-07-15 14:23 UTC]
libxml2-2.5.7.win32, downloaded from xmlsoft site with dlls installed into C:\WINDOWS\SYSTEM32 under winxp pro.

Curiously, it only appears to be a visible problem when running under the debugger (cli SAPI).
 [2003-07-16 06:24 UTC]
The problem is with libxml in the 2.5.7 and 2.5.8 releases. I submitted a fix, so it is fixed in the their cvs tree. PHP needs to be built with either a pre 2.5.7 version or a build from the latest cvs.

Note: libxml 2.5.7 built directly from the tar.gz file does not have the problem as the windows binary of libxml is built from cvs after some testing of the libxml release so contains updated code.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 18 23:01:30 2024 UTC