From: sgunderson@bigfoot.com <> Date: Mon, 21 Apr 2008 21:53:02 +0000 (+0200) Subject: Be slightly more accurate wrt. PHP's bugginess. X-Git-Url: https://git.sesse.net/?p=xml-template;a=commitdiff_plain;h=d7c5342ecfee59408ef3c410e40ac9502ebd0077 Be slightly more accurate wrt. PHP's bugginess. --- 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