From d7c5342ecfee59408ef3c410e40ac9502ebd0077 Mon Sep 17 00:00:00 2001 From: "sgunderson@bigfoot.com" <> Date: Mon, 21 Apr 2008 23:53:02 +0200 Subject: [PATCH] Be slightly more accurate wrt. PHP's bugginess. --- php5/xml-template.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/php5/xml-template.php b/php5/xml-template.php index 43b8b57..9b89e93 100644 --- a/php5/xml-template.php +++ b/php5/xml-template.php @@ -154,10 +154,10 @@ function XML_Template_alternate($tag, $array, $elems) return $array; } -# Ideally, this would be "return $obj->clone_node(true)". But surprise, surprise, -# PHP is buggy (at least both PHP4 and PHP5); it removes the prefix information -# from all attributes during a clone. IOW, we'll have to clone evverything -# ourselves. +# Ideally, this would be "return $obj->clone_node(true)". But surprise, +# surprise, PHP is buggy; it does not preserve the prefix information on +# attributes properly during a clone. (PHP4 and PHP5 are broken in different +# ways here...) IOW, we'll have to clone everything ourselves. function own_clone_node($node, $doc) { // we only need these two -- 2.39.2