ID:               32658
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to