#33967 [Opn->Csd]: misuse of Exception constructor doesn't display errorfile

From: Date: Tue, 02 Aug 2005 16:32:03 +0000
Subject: #33967 [Opn->Csd]: misuse of Exception constructor doesn't display errorfile
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-82829@lists.php.net to get a copy of this message
ID: 33967 Updated by: sniper@php.net Reported By: benjamin at schulz dot name -Status: Open +Status: Closed Bug Type: Scripting Engine problem Operating System: linux PHP Version: 5.1.0b3 New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2005-08-02 15:34:07] benjamin at schulz dot name Description: ------------ If the Exception constructor or a child class gets an object as argument the errormessage doesn't contain a file or line what makes it hard to track down because in <5.1 or even <= 5.1.0b2 (not sure) it was possible to use different prototypes in Exception children Reproduce code: --------------- <?php throw new Exception(new stdClass); ?> Actual result: -------------- Fatal error: Wrong parameter count for exception([string $exception [, long $code ]]) in Unknown on line 0 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33967&edit=1

« previous php.bugs (#82829) next »