summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorJani Taskinen <jani@php.net>2008-12-09 15:20:58 +0000
committerJani Taskinen <jani@php.net>2008-12-09 15:20:58 +0000
commitd5f137073f6cd184c5fd46de0ca44915f1e1670e (patch)
tree821724bf81609c502b360dc88d46b96ccbdd4ad1 /run-tests.php
parent14ee304daec380c36c12052027d7b48ce545cc6c (diff)
downloadphp-git-d5f137073f6cd184c5fd46de0ca44915f1e1670e.tar.gz
- Use version id instead of defined() since latter does not work with magic constants
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 f2ae0da664..f8f634987b 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__)));
}