From:             peter at letford dot co dot uk
Operating system: Windows XP Professional
PHP version:      5.0.3
PHP Bug Type:     Reproducible crash
Bug description:  Invalid exception code hangs server thread.

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 bug report at http://bugs.php.net/?id=32304&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32304&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32304&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32304&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=32304&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=32304&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=32304&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=32304&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=32304&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=32304&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=32304&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=32304&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=32304&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=32304&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32304&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=32304&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=32304&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=32304&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32304&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=32304&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32304&r=mysqlcfg

Reply via email to