MDL-47287 prevent web access to phpunit boostrap

This commit is contained in:
Petr Skoda 2014-09-18 14:29:21 +12:00 committed by Marina Glancy
parent d9fb78c981
commit 1993cc02b6

View File

@ -26,6 +26,10 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
if (isset($_SERVER['REMOTE_ADDR'])) {
die; // No access from web!
}
// we want to know about all problems
error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', '1');