Date: 06/25/02
- Next message: Paul Hudson: "[PHP-DOC] PHP manual typos, part 2"
- Previous message: ricky <email protected>: "[PHP-DOC] Bug #17808 Updated: _$SERVER['HTTPS'] not documented"
- Next in thread: Tomas V.V.Cox: "[PHP-DOC] Patch xml-set-object.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Paul Hudson: "[PHP-DOC] PHP manual typos, part 2"
- Previous message: ricky <email protected>: "[PHP-DOC] Bug #17808 Updated: _$SERVER['HTTPS'] not documented"
- Next in thread: Tomas V.V.Cox: "[PHP-DOC] Patch xml-set-object.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

