|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-03-26 08:29 UTC] mfischer@php.net
The error message for uncaught exceptions is not very informative.
-------------8<----------------
Example:
$ cat exception.php
<?php
class dummy_exception {
}
throw new dummy_exception;
?>
$ php exception.php
Fatal error: Uncaught exception! in Unknown on line 0
Unknown(0) : Fatal error - Uncaught exception!
-------------8<----------------
It doesn't matter whether the throw statement is in a function/class or not.
A few things which should be considered worth improving this message:
- in which file is it thrown ("Unknown" ?)
- on which line is it thrown ("0" ?)
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 08 09:00:01 2025 UTC |
thekid@friebes:~ > cat | php5 <?php class dummy_exception { } throw new dummy_exception; ?> ^D Fatal error: Uncaught exception 'dummy_exception'! in Unknown on line 0 At least we've gotten a bit farther:)