MDL-47287 prevent web access to phpunit boostrap

This commit is contained in:
Petr Skoda
2014-11-03 17:11:09 +08:00
committed by Marina Glancy
parent 818a6ef982
commit 0baf976363
+4
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');