ID:               24659
 Updated by:       [EMAIL PROTECTED]
 Reported By:      fujimura at wakhok dot ac dot jp
-Status:           Open
+Status:           Feedback
 Bug Type:         XML related
 Operating System: Linux kernel-2.4.21
 PHP Version:      5.0.0b2-dev
 New Comment:

Backtrace is useless as long as you don't have
--enable-debug in your configure line. 
So add it, and put new backtrace here.

Also include the full configure line you used.



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

[2003-07-15 13:35:45] [EMAIL PROTECTED]

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



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

[2003-07-15 04:25:49] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

Add the PHP version, and a backtrace.

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

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

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

;-)

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

[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