ID:               30635
 User updated by:  support at malyweb dot cz
 Reported By:      support at malyweb dot cz
 Status:           Open
 Bug Type:         Zend Engine 2 problem
 Operating System: winXp
 PHP Version:      5CVS-2004-10-31 (dev)
 New Comment:

just some more info:
I've just downgraded php back to 5.0.2 - the difference is, that the
code sometimes (irregulary :/) shows the expected result and "Fatal
error: Uncaught exception 'Exception' with message 'oh no ... ;)' in
..."

I wonder how is that possible - I have tried IE and Mozilla (i've
suspected the cache for a while)

the windowsXP built-in firewall is off


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

[2004-10-31 23:53:10] support at malyweb dot cz

Description:
------------
the code below causes that window critical error dialog appear and no
result is shown
I tried it on 5.0.2 - it did not work so I downloaded this latest
version (5.0.3-dev) and it is still not working.

(I read this one also: http://bugs.php.net/bug.php?id=30230 but
actually do not understand it - the code is not working also)

btw: this works fine
function exceptionHandler($exception){
echo('Uncaught exception: '.$exception->getMessage());
}
set_exception_handler('exceptionHandler');
throw new Exception('oh no ... ;)');exit;

Reproduce code:
---------------
<?php
class core_exception {
        public static function exceptionHandler($exception){
                echo('Uncaught exception: '.$exception->getMessage());
        }
}
$_EXCEPTION = new core_exception();
set_exception_handler(array($_EXCEPTION,'exceptionHandler'));
throw new Exception('oh no ... ;)');exit;
?>


Expected result:
----------------
Uncaught exception: oh no ... ;)

Actual result:
--------------
via browser: no result + critical error of apache
via cmdline: no result + critical error of CLI or CGI/FastCGI 

via zde debugger: shows the expected result (build 1482)



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


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

Reply via email to