Bug #14522 Updated: Crash with using $node->unlink();

From: Date: Tue, 12 Feb 2002 21:22:21 +0000
Subject: Bug #14522 Updated: Crash with using $node->unlink();
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-209@lists.php.net to get a copy of this message
ID: 14522 Updated by: rrichards@digarc.com -Reported By: klebermass@limtec.de +Reported By: rrichards@digarc.com Status: Open Bug Type: DOM XML related Operating System: SuSe 7.3 PHP Version: 4.1.0 New Comment: We have also reproduced this error on both RedHat 7.2 and FreeBSD 4.4 both running PHP 4.1.1. It completely takes down FREEBSD as apache continues to log seg faults until the drive is full. We had the same results with 4.0.6 prior to the upgrade as well. Previous Comments: ------------------------------------------------------------------------ [2002-01-07 12:16:47] klebermass@limtec.de Sorry i havent been at home the second part of December. Here a sample code: <?php $xmlstruc=xmldoc("<?xml version=\"1.0\" standalone=\"no\" ?><root><down>bla</down></root>"); $xmlnode=$xmlstruc->root(); $xmlchilds=$xmlnode->children(); if(!is_array($xmlchilds)) $xmlchilds=array($xmlchilds); foreach ( $xmlchilds as $workingchild) { $workingchild->unlink();} echo $xmlstruc->dumpmem(); ?> martin ------------------------------------------------------------------------ [2002-01-06 07:31:06] sander@php.net No feedback. Closing. ------------------------------------------------------------------------ [2001-12-14 15:46:09] derick@php.net Please try it with a snapshot from snaps.php.net too... Derick ------------------------------------------------------------------------ [2001-12-14 14:13:10] mfischer@php.net Please provide a short, self-containing, reproduceable, easy copy&paste script. Feedback. ------------------------------------------------------------------------ [2001-12-14 13:30:27] klebermass@limtec.de When using the unlink() method the apache proccess always gets a SegFault. an information on what php is running on my maschine http://www.limtec.com:82/info.php ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=14522&edit=1

« previous php.bugs (#209) next »