|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests |
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 03:00:01 2025 UTC |
<? 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 \