Author: ralfbecker
New Revision: 55002
URL: http://svn.stylite.de/viewvc/egroupware?rev=55002&view=rev
Log:
remove Exception from function signature of egw_exception_handler and _egw_log_exception, as php 7 throws Error not inherited from Exception, but Throwable does not exist in php < 7.0
Modified:
trunk/phpgwapi/inc/common_functions.inc.php
— trunk/phpgwapi/inc/common_functions.inc.php (original)
+++ trunk/phpgwapi/inc/common_functions.inc.php Sun Feb 14 18:54:14 2016
@@ -1777,10 +1777,10 @@
/**
- Clasify exception for a headline and log it to error_log, if not running as cli
-
-
-
@param Exception|Error $e
-
@param string &$headline
*/
-function _egw_log_exception(Exception $e,&$headline=null)
+function _egw_log_exception($e,&$headline=null)
{
$trace = explode("\n", $e->getTraceAsString());
if ($e instanceof egw_exception_no_permission)
@@ -1824,9 +1824,9 @@
-
- Does NOT return
-
-
- */
-function egw_exception_handler(Exception $e)
-
-
@param Exception|Error $e
- */
+function egw_exception_handler($e)
{
// handle redirects without logging
if (is_a($e, ‘egw_exception_redirect’))
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs