]> granicus.if.org Git - php/commitdiff
- Sync with all branches (same run-tests.php everywhere
authorJani Taskinen <jani@php.net>
Mon, 8 Dec 2008 12:36:38 +0000 (12:36 +0000)
committerJani Taskinen <jani@php.net>
Mon, 8 Dec 2008 12:36:38 +0000 (12:36 +0000)
run-tests.php

index 68e5c34f2374763df89c82901ae3b6b487fa48fa..f2ae0da6645db87ffbeaadca78c4b7c8024c5070 100755 (executable)
@@ -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');