svn: /phpdoc/en/trunk/reference/errorfunc/functions/ set-exception-handler.xml

From: Date: Wed, 20 May 2015 20:04:00 +0000
Subject: svn: /phpdoc/en/trunk/reference/errorfunc/functions/ set-exception-handler.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-13320@lists.php.net to get a copy of this message
aharvey Wed, 20 May 2015 20:04:00 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=336810 Log: Add a cautionary note to avoid type hinting set_exception_handler(). Changed paths: U phpdoc/en/trunk/reference/errorfunc/functions/set-exception-handler.xml Modified: phpdoc/en/trunk/reference/errorfunc/functions/set-exception-handler.xml =================================================================== --- phpdoc/en/trunk/reference/errorfunc/functions/set-exception-handler.xml 2015-05-20 14:57:54 UTC (rev 336809) +++ phpdoc/en/trunk/reference/errorfunc/functions/set-exception-handler.xml 2015-05-20 20:04:00 UTC (rev 336810) @@ -43,6 +43,13 @@ <para> &null; may be passed instead, to reset this handler to its default state. </para> + <caution> + <para> + Note that providing an explicit <classname>Exception</classname> type + hint for the <parameter>ex</parameter> parameter in your callback will + cause issues with the changed exception hierarchy in PHP 7. + </para> + </caution> </listitem> </varlistentry> </variablelist>

« previous php.doc.cvs (#13320) next »