php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45948 [PATCH] dom extension segfaults because of another apache module
Submitted: 2008-08-29 15:51 UTC Modified: 2008-08-31 08:38 UTC
From: thomas dot jarosch at intra2net dot com Assigned:
Status: Wont fix Package: DOM XML related
PHP Version: 5.2.6 OS: linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2008-08-29 15:51 UTC] thomas dot jarosch at intra2net dot com
Description:
------------
Hello together,

like last time in bug #29599, another apache module is using
libxml2 and registering a global create/delete node callback.

Right now PHP crashes on our site while using the dom extension
because the callback still points to the other module. Guess libxml2
is to blame for providing -global- callbacks.

Attached patch makes sure everything is clean and shiny
when enter/leaving the request handled by PHP. The performance
impact should be close to nothing. Hope it's useful to someone else.

Link to patch:
http://www.intra2net.com/de/download/opensource/php-5.2.6-fix-

Thomas



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-08-29 15:52 UTC] thomas dot jarosch at intra2net dot com
The link somehow gets cropped by the bugtracker,
the filename is php-5.2.6-fix-libxmlpp-clash.patch
 [2008-08-30 17:05 UTC] jani@php.net
Please provide patches against HEAD, PHP_5_3 and PHP_5_2 branches.
 [2008-08-31 08:38 UTC] rrichards@php.net
You should report this to the author of the other module. They should 
fix their code and not be abusing the libxml2 globals like this.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Jul 16 15:01:26 2019 UTC