ID: 32304
Updated by: [EMAIL PROTECTED]
Reported By: peter at letford dot co dot uk
-Status: Open
+Status: Feedback
Bug Type: Zend Engine 2 problem
Operating System: Windows XP Professional
PHP Version: 5CVS-2005-03-15
New Comment:
Can't reproduce.
Please provide more info about your system & try the latest snapshots
from snaps.php.net
Previous Comments:
------------------------------------------------------------------------
[2005-03-15 01:21:32] peter at letford dot co dot uk
Hi,
This bug exists on 5.1.0-dev
------------------------------------------------------------------------
[2005-03-14 21:24:11] peter at letford dot co dot uk
Description:
------------
If you throw an exception that doesn't use a number for the error code,
a "Fatal Error" message box pops up saying:
Wrong parameter count for exception([string $exception [,long $code]])
This hangs the current server thread until the message box is selected
which could be used to lock all of the available threads on the server
and effectively take the server offline.
Reproduce code:
---------------
<?php
throw new Exception("Invalid Error Code -->", "ERRO_ASDASD");
?>
Expected result:
----------------
Throw an exception as normal.
Actual result:
--------------
The thread will hang and the page won't load until you close the
message popup. It will then display this:
"Fatal error: Wrong parameter count for exception([string $exception [,
long $code ]]) in Unknown on line 0"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32304&edit=1