bug #1377215, errors with E_STRICT

This commit is contained in:
Marc Delisle
2006-02-18 15:16:09 +00:00
parent 6ebf0bee0d
commit b3f8d5cc88
2 changed files with 11 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ $Source$
2006-02-18 Marc Delisle <lem9@users.sourceforge.net>
* tbl_change.php: bug #1415465, undefined $sql_query
* libraries/common.lib.php: bug #1377215, errors with E_STRICT
2006-02-18 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* libraries/sql_query_form.lib.php:

View File

@@ -36,6 +36,16 @@
* release number
*/
/**
* For now, avoid warnings of E_STRICT mode
* (this must be done before function definitions)
*/
if (defined('E_STRICT')) {
$old_error_reporting = error_reporting(0);
error_reporting($old_error_reporting ^ E_STRICT);
unset($old_error_reporting);
}
/******************************************************************************/
/* definition of functions LABEL_definition_of_functions */