note 18006 deleted from ref.domxml by vincent

From: Date: Thu, 11 Sep 2003 20:59:23 +0000
Subject: note 18006 deleted from ref.domxml by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-56270@lists.php.net to get a copy of this message
Note Submitter: dietmar.glachs@salzburgresearch.at ---- Work-Around for the unlink-problem ... With the new version of php 4.1.x, the unlink-function does not work as expected - in my case - the script hangs up and is interrupted after the timeout ... The following code is a simple work-around: $useless = domxml_node( "newnode" ); $useless->append_child( $node_to_unlink ); The append_child-method simply appends the node to the $useless node and removes it automatically from the original tree. Doing nothing with $useless gives you the desired result. Regards

« previous php.notes (#56270) next »