PHP 4.0 Bug #7186: class object variables get 'unset' when assigned within xml handlers
| From: | igo at ipass dot net | Date: | Fri, 13 Oct 2000 15:49:37 +0000 |
| Subject: | PHP 4.0 Bug #7186: class object variables get 'unset' when assigned within xml handlers | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-34924@lists.php.net to get a copy of this message | ||
From: igo@ipass.net
Operating system: Solaris 8
PHP version: 4.0.3
PHP Bug Type: XML related
Bug description: class object variables get 'unset' when assigned within xml handlers
<?
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 \
--
Edit Bug report at: http://bugs.php.net/?id=7186&edit=1