summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorJani Taskinen <jani@php.net>2008-12-09 15:21:15 (GMT)
committerJani Taskinen <jani@php.net>2008-12-09 15:21:15 (GMT)
commitb2a2aaff93e567ecaf9f568d26810ad6b4e062cf (patch)
tree1c489ef503c097f2e8d0e0c93776ae07cb68f718 /run-tests.php
parentbc41d716a7d21fe66879610ca735754133dadae5 (diff)
downloadphp-b2a2aaff93e567ecaf9f568d26810ad6b4e062cf.tar.gz
MFH
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/run-tests.php b/run-tests.php
index f2ae0da..f8f6349 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -59,8 +59,8 @@ NO_PROC_OPEN_ERROR;
exit;
}
-// If __DIR__ is not defined, define it
-if (!defined('__DIR__')) {
+// __DIR__ is available from 5.3.0
+if (PHP_VERSION_ID < 50300) {
define('__DIR__', realpath(dirname(__FILE__)));
}