From 8443b10a603ea2f55d09b6bdcef57ea9faacd9c0 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Mon, 22 Apr 2002 00:01:18 +0000 Subject: [PATCH] Clear up syntax error, but trapping dl errors is still impossible... --- phpgwapi/inc/class.php_ext.inc.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/phpgwapi/inc/class.php_ext.inc.php b/phpgwapi/inc/class.php_ext.inc.php index 5f4ebf1933..34c928bfed 100644 --- a/phpgwapi/inc/class.php_ext.inc.php +++ b/phpgwapi/inc/class.php_ext.inc.php @@ -84,14 +84,17 @@ { while(list(,$tf) = each($this->test_function[$ext]['extfile'])) { - eval('dl(' . $tf . '.' . $this->os_ext . ');'); + error_reporting(0); + eval('$tmp = dl(' . $tf . $this->os_ext . ');'); + error_reporting(E_ERROR | E_WARNING | E_PARSE); $this->check($ext,True); } } else { - //dl($ext. $this->os_ext); - eval('dl(' . $ext . '.' . $this->os_ext . ');'); + error_reporting(0); + eval('$tmp = dl(' . $ext . $this->os_ext . ');'); + error_reporting(E_ERROR | E_WARNING | E_PARSE); return $this->check($ext,False); } }