ID: 26750 Comment by: mike at iworks dot at Reported By: php dot bug at stre dot it Status: Feedback Bug Type: Zend Engine 2 problem Operating System: win32 nt5.1 PHP Version: 5.0.0b3 (beta3) New Comment:
I'm experiencing similar problems, but I think I figured sth out - It might be the __toString() magic. Reproduce 1 (works): ==================== <?php try { throw new Exception; } catch (Exception $ex) { print_r($ex); } ?> Result 1: ========= exception Object ( [message:protected] => Unknown exception [string:private] => [code:protected] => 0 [file:protected] => W:\exception.php5 [line:protected] => 3 [trace:private] => Array ( ) ) Reproduce Code 2 (doesn't): =========================== <?php try { throw new Exception; } catch (Exception $ex) { print($ex); } ?> Result 2: ========= Memeory read error. Mike Previous Comments: ------------------------------------------------------------------------ [2004-01-02 10:28:55] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ [2003-12-30 21:42:55] php dot bug at stre dot it Description: ------------ this failure happens not in every context, i cant reproduce the concret context it happens (to much code). but something to the context: i have a abstract class (PageException) extending Exception in this class i call the function debug_backtrace inside the constructor. The pageexception class is super class of ExpressionException the expressionexception will be throw in a page included inside a method of a object when i call the function debug_backtrace php dont come out of the function and the page ends with a timeout (infinity loop?). when i remove debug_backtrace everything is ok. in the same context the function debug_print_backtrace apache webserver throw a failure looks like bad reference (the instruction at "0x100dfc8b" referenced memory at "0x00000000". the memory could not be "read") Reproduce code: --------------- sorry to much ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26750&edit=1