#34320 [Opn->Fbk]: Segfault with DomDocument

From: Date: Wed, 31 Aug 2005 17:34:39 +0000
Subject: #34320 [Opn->Fbk]: Segfault with DomDocument
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-84258@lists.php.net to get a copy of this message
ID: 34320 Updated by: rrichards@php.net Reported By: php at owenpshaw dot net -Status: Open +Status: Feedback Bug Type: Reproducible crash Operating System: Linux PHP Version: 5.1.0RC1 New Comment: Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2005-08-31 19:13:49] php at owenpshaw dot net Description: ------------ As near as I can tell, a DomDocument object causes a crash when it is unset. I cannot duplicate the crash with any other kind of object. Reproduce code: --------------- 1) $d = DomDocument::load('test.xml'); 2) $d = DomDocument::load('test.xml'); var_dump($d); 3) $d = DomDocument::load('test.xml'); $d = DomDocument::load('test.xml'); var_dump($d); Expected result: ---------------- 1) (nothing) 2) object(DOMDocument)#1 (0) { } 3) object(DOMDocument)#2 (0) { } Actual result: -------------- 1) Segmentation fault 2) object(DOMDocument)#1 (0) { } Segmentation fault 3) Segmentation fault ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34320&edit=1

« previous php.bugs (#84258) next »