From: fujimura at wakhok dot ac dot jp Operating system: Linux kernel-2.4.21 PHP version: Irrelevant PHP Bug Type: XML related Bug description: Segmentation fault: xml_set_*_handler with object reference
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 bug report at http://bugs.php.net/?id=24659&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24659&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24659&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24659&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24659&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24659&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24659&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24659&r=support Expected behavior: http://bugs.php.net/fix.php?id=24659&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24659&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24659&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24659&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24659&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24659&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24659&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24659&r=gnused