From 687774dcd607de2cbaa5b28ef91af80e6371e0d1 Mon Sep 17 00:00:00 2001 From: Daniel Egeberg Date: Thu, 14 Jan 2010 15:34:37 +0000 Subject: [PATCH] Fixes PHP bug #50752 (Exception documentation needs clarification) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@293547 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/exceptions.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/language/exceptions.xml b/language/exceptions.xml index 0018e7825d..3770815c3b 100644 --- a/language/exceptions.xml +++ b/language/exceptions.xml @@ -25,6 +25,11 @@ "Uncaught Exception ..." message, unless a handler has been defined with set_exception_handler. + + The thrown object must be an instance of the Exception + class or a subclass of Exception. Trying to throw an + object that is not will result in a PHP Fatal Error. + Internal PHP functions mainly use