|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2005-03-15 01:21 UTC] peter at letford dot co dot uk
  [2005-03-19 12:37 UTC] tony2001@php.net
  [2005-03-25 01:54 UTC] sniper@php.net
  [2005-03-26 19:41 UTC] peter at letford dot co dot uk
  [2005-04-05 10:11 UTC] tony2001@php.net
  [2005-04-13 01:00 UTC] php-bugs at lists dot php dot net
  [2005-04-24 15:52 UTC] peter at letford dot co dot uk
  [2005-04-24 15:54 UTC] tony2001@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 14:00:01 2025 UTC | 
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"