misuse of Exception constructor doesn't display errorfile
| Bug #33967 | misuse of Exception constructor doesn't display errorfile | ||||
|---|---|---|---|---|---|
| Submitted: | 2005-08-02 15:34 UTC | Modified: | 2005-08-02 18:32 UTC | ||
| From: | benjamin at schulz dot name | Assigned: | |||
| Status: | Closed | Package: | Scripting Engine problem | ||
| PHP Version: | 5.1.0b3 | OS: | linux | ||
| Private report: | No | CVE-ID: | None | ||
[2005-08-02 15:34 UTC] 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
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2005-08-02 18:32 UTC] sniper@php.net