note 18006 added to ref.domxml

From: Date: Mon, 07 Jan 2002 11:31:04 +0000
Subject: note 18006 added to ref.domxml
Groups: php.notes 
Request: Send a blank email to php-notes+get-24487@lists.php.net to get a copy of this message
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 -- http://www.php.net/manual/en/ref.domxml.php http://master.php.net/manage/user-notes.php?action=edit+18006 http://master.php.net/manage/user-notes.php?action=delete+18006 http://master.php.net/manage/user-notes.php?action=reject+18006

« previous php.notes (#24487) next »