forked from extern/egroupware
disable warnings under PHP 8 for now, as the hide fatal errors and log errors in xet files
This commit is contained in:
parent
6ce05919b6
commit
79040d1524
@ -650,7 +650,7 @@ class Widget
|
|||||||
* This is mainly used for autorepeat, but other use is possible.
|
* This is mainly used for autorepeat, but other use is possible.
|
||||||
* You need to be aware of the rules PHP uses to expand vars in strings, a name
|
* You need to be aware of the rules PHP uses to expand vars in strings, a name
|
||||||
* of "Row$row[length]" will expand to 'Row' as $row is scalar, you need to use
|
* of "Row$row[length]" will expand to 'Row' as $row is scalar, you need to use
|
||||||
* "Row${row}[length]" instead. Only one indirection is allowd in a string by php !!!
|
* "Row${row}[length]" instead. Only one indirection is allowed in a string by php !!!
|
||||||
* Out of that reason we have now the variable $row_cont, which is $cont[$row] too.
|
* Out of that reason we have now the variable $row_cont, which is $cont[$row] too.
|
||||||
* Attention !!!
|
* Attention !!!
|
||||||
* Using only number as index in field-names causes a lot trouble, as depending
|
* Using only number as index in field-names causes a lot trouble, as depending
|
||||||
@ -686,8 +686,13 @@ class Widget
|
|||||||
$row_cont = $cont[$row];
|
$row_cont = $cont[$row];
|
||||||
$col_row_cont = $cont[$col.$row];
|
$col_row_cont = $cont[$col.$row];
|
||||||
|
|
||||||
|
try {
|
||||||
eval('$name = "' . str_replace('"', '\\"', $name) . '";');
|
eval('$name = "' . str_replace('"', '\\"', $name) . '";');
|
||||||
unset($col_, $row_, $row_cont, $col_row_cont); // quiten IDE warning about used vars, they might be used in above eval!
|
}
|
||||||
|
catch(\Throwable $e) {
|
||||||
|
_egw_log_exception($e);
|
||||||
|
}
|
||||||
|
unset($col_, $row_, $row_cont, $col_row_cont); // quieten IDE warning about used vars, they might be used in above eval!
|
||||||
}
|
}
|
||||||
if ($is_index_in_content)
|
if ($is_index_in_content)
|
||||||
{
|
{
|
||||||
|
@ -179,10 +179,7 @@ function egw_error_handler ($errno, $errstr, $errfile, $errline)
|
|||||||
case E_USER_WARNING:
|
case E_USER_WARNING:
|
||||||
// skip message for warnings supressed via @-error-control-operator (eg. @is_dir($path))
|
// skip message for warnings supressed via @-error-control-operator (eg. @is_dir($path))
|
||||||
// can be commented out to get suppressed warnings too!
|
// can be commented out to get suppressed warnings too!
|
||||||
if ((error_reporting() & $errno) &&
|
if ((error_reporting() & $errno) && PHP_VERSION < 8.0)
|
||||||
// silence "Declaration of $class::$method should be compatible with $parent::$method" warning
|
|
||||||
!(substr($errstr, 0, 15) === 'Declaration of ' &&
|
|
||||||
strpos($errstr, ' should be compatible with ') !== false))
|
|
||||||
{
|
{
|
||||||
_egw_log_exception(new egw_exception_warning($errstr.' in '.$errfile.' on line '.$errline));
|
_egw_log_exception(new egw_exception_warning($errstr.' in '.$errfile.' on line '.$errline));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user