From: Jani Taskinen Date: Mon, 8 Dec 2008 12:36:38 +0000 (+0000) Subject: - Sync with all branches (same run-tests.php everywhere X-Git-Tag: php-5.4.0alpha1~191^2~4867 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8f245aaf941867f252250ebb230a6b940c6c8eae;p=php - Sync with all branches (same run-tests.php everywhere --- diff --git a/run-tests.php b/run-tests.php index 68e5c34f23..f2ae0da664 100755 --- a/run-tests.php +++ b/run-tests.php @@ -59,6 +59,11 @@ NO_PROC_OPEN_ERROR; exit; } +// If __DIR__ is not defined, define it +if (!defined('__DIR__')) { + define('__DIR__', realpath(dirname(__FILE__))); +} + // If timezone is not set, use UTC. if (ini_get('date.timezone') == '') { date_default_timezone_set('UTC');