From fdba617bc8fbca76bcad9b9e0a824db539ecc4e1 Mon Sep 17 00:00:00 2001 From: Richard Quadling Date: Wed, 21 Jul 2010 16:02:05 +0000 Subject: [PATCH] Added note about backward compatibility of extending exceptions for PHP < 5.3.0 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@301446 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/exceptions.xml | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/language/exceptions.xml b/language/exceptions.xml index 480b60effc..c93b13d420 100644 --- a/language/exceptions.xml +++ b/language/exceptions.xml @@ -173,7 +173,7 @@ class Exception - Extending the Exception class + Extending the Exception class (PHP V5.3.+) ]]> + + Versions of PHP 5, prior to PHP 5.3.0 do not support nesting of exceptions. + The following code fragment can be used as a replacement MyException class + if you wish to run this example. + +code}]: {$this->message}\n"; + } + + public function customFunction() { + echo "A custom function for this type of exception\n"; + } +} +?> +]]> + +