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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
44 - 8 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 11:01:28 2024 UTC