PHP :: Bug #35539 :: ErrorException treated as Exception
| Bug #35539 | ErrorException treated as Exception | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2005-12-04 00:38 UTC | Modified: | 2005-12-04 12:47 UTC |
|
||||||||||
| From: | marcing at smlw dot pl | Assigned: | ||||||||||||
| Status: | Closed | Package: | Scripting Engine problem | |||||||||||
| PHP Version: | 5CVS-2005-12-04 (snap) | OS: | Win XP | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2005-12-04 00:38 UTC] marcing at smlw dot pl
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 ]])
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2005-12-04 00:54 UTC] tony2001@php.net
[2005-12-04 01:07 UTC] judas dot iscariote at gmail dot com
[2005-12-04 01:32 UTC] tony2001@php.net
./sapi/cli/php -r 'throw new ErrorException($msg, $code, $severity, $file, $line);' Fatal error: Uncaught exception 'ErrorException' in :0 Stack trace: #0 {main} thrown in on line 0 ./sapi/cli/php -v PHP 5.1.2-dev (cli) (built: Dec 4 2005 02:47:57) Do you have any Zend extensions enabled like APC, IonCube, eAccelerator etc. ?[2005-12-04 02:22 UTC] judas dot iscariote at gmail dot com
[2005-12-04 10:27 UTC] marcing at smlw dot pl
[2005-12-04 12:47 UTC] tony2001@php.net