File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919$ starttime = explode (' ' , microtime ());
2020$ starttime = $ starttime [1 ] + $ starttime [0 ];
2121
22- // Report all errors, except notices
23- error_reporting (E_ALL ^ E_NOTICE );
22+ // Report all errors, except notices and deprecation messages
23+ if (!defined ('E_DEPRECATED ' ))
24+ {
25+ define ('E_DEPRECATED ' , 8192 );
26+ }
27+ error_reporting (E_ALL ^ E_NOTICE ^ E_DEPRECATED );
2428
2529/*
2630* Remove variables created by register_globals from the global scope
Original file line number Diff line number Diff line change @@ -102,6 +102,7 @@ <h1>Changelog</h1>
102102 < li > [Fix] Correctly show topic ATOM feed link when only post id is specified. (Bug #53025)</ li >
103103 < li > [Fix] Cleanly handle forum/topic not found in ATOM Feeds. (Bug #54295)</ li >
104104 < li > [Fix] PHP 5.3 compatibility: Check if function dl() exists before calling it. (Bug #54665)</ li >
105+ < li > [Fix] PHP 5.3 compatibility: Disable E_DEPRECATED on startup to keep set_magic_quotes_runtime(0) quiet. (Bug #54495)</ li >
105106 < li > [Change] Send time of last item instead of current time in ATOM Feeds. (Bug #53305)</ li >
106107 < li > [Change] Use em dash instead of hyphen/minus as separator in ATOM Feeds item statistics. (Bug #53565)</ li >
107108 </ ul >
Original file line number Diff line number Diff line change 3030$ phpbb_root_path = (defined ('PHPBB_ROOT_PATH ' )) ? PHPBB_ROOT_PATH : './../ ' ;
3131$ phpEx = substr (strrchr (__FILE__ , '. ' ), 1 );
3232
33- // Report all errors, except notices
34- //error_reporting(E_ALL ^ E_NOTICE);
33+ // Report all errors, except notices and deprecation messages
34+ if (!defined ('E_DEPRECATED ' ))
35+ {
36+ define ('E_DEPRECATED ' , 8192 );
37+ }
38+ //error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED);
3539error_reporting (E_ALL );
3640
3741@set_time_limit (0 );
Original file line number Diff line number Diff line change 1818$ phpbb_root_path = (defined ('PHPBB_ROOT_PATH ' )) ? PHPBB_ROOT_PATH : './../ ' ;
1919$ phpEx = substr (strrchr (__FILE__ , '. ' ), 1 );
2020
21- // Report all errors, except notices
22- error_reporting (E_ALL ^ E_NOTICE );
21+ // Report all errors, except notices and deprecation messages
22+ if (!defined ('E_DEPRECATED ' ))
23+ {
24+ define ('E_DEPRECATED ' , 8192 );
25+ }
26+ error_reporting (E_ALL ^ E_NOTICE ^ E_DEPRECATED );
2327
2428// @todo Review this test and see if we can find out what it is which prevents PHP 4.2.x from even displaying the page with requirements on it
2529if (version_compare (PHP_VERSION , '4.3.3 ' ) < 0 )
Original file line number Diff line number Diff line change 1515$ phpbb_root_path = (defined ('PHPBB_ROOT_PATH ' )) ? PHPBB_ROOT_PATH : './ ' ;
1616$ phpEx = substr (strrchr (__FILE__ , '. ' ), 1 );
1717
18- // Report all errors, except notices
19- error_reporting (E_ALL ^ E_NOTICE );
18+ // Report all errors, except notices and deprecation messages
19+ if (!defined ('E_DEPRECATED ' ))
20+ {
21+ define ('E_DEPRECATED ' , 8192 );
22+ }
23+ error_reporting (E_ALL ^ E_NOTICE ^ E_DEPRECATED );
2024
2125require ($ phpbb_root_path . 'config. ' . $ phpEx );
2226
You can’t perform that action at this time.
0 commit comments