ID: 7186 Updated by: thies Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: XML related Assigned To: Comments: one bug has been fixed in regards to xml_set_object in CVS you also need to say: $o = &new __TestParser1(); instead of $o = new __TestParser1(); elsewise $this in the constructor won't be the same as vale of $o once new __TestParser1() has returned! see: http://viewcvs.php.net/viewcvs.cgi/php4/NEWS.diff?r1=1.532.2.2&r2=1.532.2.3 Previous Comments: --------------------------------------------------------------------------- [2000-10-13 11:49:37] [EMAIL PROTECTED] <? require_once "XML/Parser.php"; class __TestParser1 extends XML_Parser { var $data; function __TestParser1() { $this->XML_Parser(); } function startHandler($xp, $element, $attribs) { } function endHandler($xp, $element) { } function cdataHandler($xp, $cdata) { $this->data=$cdata; } function defaultHandler($xp, $cdata) { } } $o = new __TestParser1(); $o->parseString("<?xml version='1.0' ?><root>foo</root>", 1); echo $o->data; // Should print 'foo', it does not print anything ?> No php.ini used EXTRA_LDFLAGS="-Wl,-s" CPPFLAGS=$CFLAGS ./configure --with-regex=system --enable-shared --enable-track-vars --with-config-file-path=/usr/local/etc --with-mysql=/usr/local --enable-ftp --enable-xml --with-gd=no --with-db2=no --with-db3=no --with-zlib=no --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=7186&edit=2 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]