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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: thomas dot jarosch at intra2net dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 02:01:29 2024 UTC