ID:               24659
 User updated by:  fujimura at wakhok dot ac dot jp
 Reported By:      fujimura at wakhok dot ac dot jp
 Status:           Open
 Bug Type:         XML related
 Operating System: Linux kernel-2.4.21
 PHP Version:      Irrelevant
 New Comment:

-$parser AND die;
+$parser OR die;

;-)


Previous Comments:
------------------------------------------------------------------------

[2003-07-15 04:15:16] fujimura at wakhok dot ac dot jp

Description:
------------
The following code crashes(segmentation fault, and empty output) at a
whim.
But it does not reproduce when php invoked as CLI.


Reproduce code:
---------------
<?php

class MyHandler {
    public function test($parser, $data) {
        print $data;
    }
}

$parser = xml_parser_create();
$parser AND die;

$handler = new MyHandler();

xml_set_default_handler($parser, array($handler, "test"));

xml_parser_free($parser);

?>

Expected result:
----------------
Nothing.

Actual result:
--------------
SIGSEGV logged to error_log.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=24659&edit=1

Reply via email to