Date: 08/15/00
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #5882 Updated: Use inline directive in *.c files for global functions in Zend engine"
- Previous message: Joey Smith: "Re: [PHP-DEV] PHP 4.0 Bug #6174 Updated: problem with sprintf, urlencode and string concatenation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: jon <email protected>
Operating system: FreeBSD 4.1-STABLE
PHP version: 4.0 Latest CVS (15/08/2000)
PHP Bug Type: Other
Bug description: XML functions no longer work in objects
After updating to the latest CVS this morning, existing code that uses the XML parser functions in an object no longer work.
In the constructor:
$this->parser = xml_parser_create();
xml_set_object($this->parser, &$this);
xml_parser_set_option($this->parser, XML_OPTION_CASE_FOLDING, true);
xml_set_element_handler($this->parser, "startElement", "endElement");
xml_set_character_data_handler($this->parser, "defaultHandler");
And in another method:
xml_parse($this->parser, $this->buffer, true);
When xml_parse is executed, PHP reports a long list of warnings like:
Warning: Unable to call defaultHandler() in ./lib/Help.php on line 121
(line 121 is the xml_parse line)
The "defaultHandler", "endElement", and "startElement" methods all exist in the object.
One of the changes made over the last few days in either PHP or Zend must have broken something here. I tshould be fixed or documented as changed (I might have missed something) before 4.0.2 is release.
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #5882 Updated: Use inline directive in *.c files for global functions in Zend engine"
- Previous message: Joey Smith: "Re: [PHP-DEV] PHP 4.0 Bug #6174 Updated: problem with sprintf, urlencode and string concatenation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

