#35539 [Opn->Fbk]: ErrorException treated as Exception

From: Date: Sat, 03 Dec 2005 23:54:36 +0000
Subject: #35539 [Opn->Fbk]: ErrorException treated as Exception
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-89691@lists.php.net to get a copy of this message
ID: 35539 Updated by: tony2001@php.net Reported By: marcing at smlw dot pl -Status: Open +Status: Feedback -Bug Type: Scripting Engine problem +Bug Type: Unknown/Other Function Operating System: Win XP PHP Version: 5CVS-2005-12-04 (snap) New Comment: I can't reproduce it. Could you try on some different machine? (a *nix would be better) Previous Comments: ------------------------------------------------------------------------ [2005-12-04 00:38:45] 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 ]]) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35539&edit=1

« previous php.bugs (#89691) next »