#32658 [Opn->Bgs]: Exceptions in includes from a method are invisible
| From: | dmytton@php.net | Date: | Mon, 11 Apr 2005 07:38:03 +0000 |
| Subject: | #32658 [Opn->Bgs]: Exceptions in includes from a method are invisible | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-76631@lists.php.net to get a copy of this message | ||
ID: 32658
Updated by: dmytton@php.net
Reported By: LoN_Kamikaze at gmx dot de
-Status: Open
+Status: Bogus
-Bug Type: Documentation problem
+Bug Type: Unknown/Other Function
Operating System: WinXP
PHP Version: 5.0.4
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Previous Comments:
------------------------------------------------------------------------
[2005-04-10 18:57:42] LoN_Kamikaze at gmx dot de
Description:
------------
If you throw an exception in a script that has been called via include
in a method, it terminates the script, but it does not show an error
message and it is not loged in the php error logfile.
I suspect this bug is related to another one I submited:
http://bugs.php.net/bug.php?id=32657
But I am not sure, thus I submited it as a new bug.
Reproduce code:
---------------
index.php
<?php
class testReturn {
public function test() {
include('test.php');
echo 'Nothing unusual happened in this inlcude';
}
}
$test = new testReturn();
$test->test();
?>
test.php
<?php
throw new Exception('I wish that would work');
?>
Expected result:
----------------
Fatal error: Uncaught exception 'Exception' with message 'I wish that
would work' in...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32658&edit=1