From: marcing at smlw dot pl
Operating system: Win XP
PHP version: 5CVS-2005-12-04 (snap)
PHP Bug Type: Scripting Engine problem
Bug description: ErrorException treated as Exception
Description:
------------
thrown ErrorException accepts 2 arguments instead of 5
Reproduce code:
---------------
throw new ErrorException($msg, $code, $severity, $file, $line);
Expected result:
----------------
ErrorException should accept 5 arguments:
Method [ <internal> <ctor> public method __construct ] {
- Parameters [5] {
Parameter #0 [ <required> $message ]
Parameter #1 [ <required> $code ]
Parameter #2 [ <required> $severity ]
Parameter #3 [ <optional> $filename ]
Parameter #4 [ <optional> $lineno ]
}
Actual result:
--------------
Fatal error: Wrong parameter count for exception([string $exception [,
long $code ]])
--
Edit bug report at http://bugs.php.net/?id=35539&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=35539&r=trysnapshot44
Try a CVS snapshot (PHP 5.1):
http://bugs.php.net/fix.php?id=35539&r=trysnapshot51
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=35539&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=35539&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=35539&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35539&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35539&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35539&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35539&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35539&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=35539&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=35539&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35539&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35539&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35539&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35539&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35539&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35539&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35539&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35539&r=mysqlcfg