From: Marek R. <ap...@ph...> - 2009-07-18 09:59:35
|
Author: aptx Date: Sat Jul 18 09:44:03 2009 New Revision: 9776 Log: - PHP4 compatibility Modified: branches/phpBB-3_0_0/phpBB/includes/functions.php Modified: branches/phpBB-3_0_0/phpBB/includes/functions.php ============================================================================== *** branches/phpBB-3_0_0/phpBB/includes/functions.php (original) --- branches/phpBB-3_0_0/phpBB/includes/functions.php Sat Jul 18 09:44:03 2009 *************** *** 3306,3311 **** --- 3306,3316 ---- $msg_text = $msg_long_text; } + if (!defined('E_DEPRECATED')) + { + define('E_DEPRECATED', 8192); + } + switch ($errno) { case E_NOTICE: *************** *** 3481,3486 **** --- 3486,3496 ---- exit_handler(); break; + + // PHP4 comptibility + case E_DEPRECATED: + return true; + break; } // If we notice an error not handled here we pass this back to PHP by returning false |