#27882 [Opn->Csd]: xml_set_object(...) seems to not working
| From: | derick@php.net | Date: | Wed, 14 Apr 2004 12:16:54 +0000 |
| Subject: | #27882 [Opn->Csd]: xml_set_object(...) seems to not working | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-58108@lists.php.net to get a copy of this message | ||
ID: 27882
Updated by: derick@php.net
Reported By: david dot seidel at one-jinx dot de
-Status: Open
+Status: Closed
Bug Type: XML related
Operating System: Linux (2.4.19)
PHP Version: 5CVS-2004-04-06 (dev)
New Comment:
Then we close the report.
Previous Comments:
------------------------------------------------------------------------
[2004-04-14 06:58:59] david dot seidel at one-jinx dot de
It seems that now everything works fine. Thanks.
------------------------------------------------------------------------
[2004-04-12 17:55:10] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
[2004-04-08 10:39:13] rrichards@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2004-04-08 07:11:50] david dot seidel at one-jinx dot de
class XMLParser {
var $parser = null;
public function __construct($xml) {
$this->parser = xml_parser_create();
xml_set_object($this->parser, $this);
xml_set_element_handler($this->parser, "tag_open",
"tag_close");
xml_set_character_data_handler($this->parser, "cdata");
xml_parser_set_option ( $this->parser,
XML_OPTION_CASE_FOLDING,false);
}
public function tag_open($parser, $tag, $attributes){}
public function tag_close($parser, $tag) {}
public function cdata($parser, $data) {}
}
$string="<?xml version="1.0"?><root>test</root>";
$foo = new XMLParser($string);
------------------------------------------------------------------------
[2004-04-07 10:59:49] sniper@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc.
If possible, make the script source available online and provide
an URL to it here. Try avoid embedding huge scripts into the report.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/27882
--
Edit this bug report at http://bugs.php.net/?id=27882&edit=1