Due the amount of people asking and filling bugs report on this issue I
would like to recommend this patch for the documentation for this
function.
Thanks,
Tomas V.V.Cox
--- xml-set-object.xml Tue Jun 25 16:00:07 2002
+++ xml-set-object.xml.new Tue Jun 25 16:01:31 2002
@@ -11,7 +11,7 @@
<methodsynopsis>
<type>void</type><methodname>xml_set_object</methodname>
<methodparam><type>resource</type><parameter>parser</parameter></methodparam>
- <methodparam><type>object</type><parameter>&object</parameter></methodparam>
+ <methodparam><type>object</type><parameter>object</parameter></methodparam>
</methodsynopsis>
<para>
This function allows to use <parameter>parser</parameter> inside
@@ -56,7 +56,8 @@
} // end of class xml
-$xml_parser = new xml();
+// Important! The object has to be created by reference
+$xml_parser = &new xml();
$xml_parser->parse("<A ID='hallo'>PHP</A>");
?>
]]>
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php