#32304 [Fbk->Opn]: Invalid exception code hangs server thread.
| From: | peter at letford dot co dot uk | Date: | Tue, 15 Mar 2005 00:21:33 +0000 |
| Subject: | #32304 [Fbk->Opn]: Invalid exception code hangs server thread. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-75346@lists.php.net to get a copy of this message | ||
ID: 32304
User updated by: peter at letford dot co dot uk
Reported By: peter at letford dot co dot uk
-Status: Feedback
+Status: Open
Bug Type: Reproducible crash
Operating System: Windows XP Professional
PHP Version: 5.0.3
New Comment:
Hi,
This bug exists on 5.1.0-dev
Previous Comments:
------------------------------------------------------------------------
[2005-03-14 22:18:47] sniper@php.net
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
------------------------------------------------------------------------
[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