]> granicus.if.org Git - php/commitdiff
- Use version id instead of defined() since latter does not work with magic constants
authorJani Taskinen <jani@php.net>
Tue, 9 Dec 2008 15:20:58 +0000 (15:20 +0000)
committerJani Taskinen <jani@php.net>
Tue, 9 Dec 2008 15:20:58 +0000 (15:20 +0000)
run-tests.php

index f2ae0da6645db87ffbeaadca78c4b7c8024c5070..f8f634987bb1a523d2d3b042e165fcdea9e92cf4 100755 (executable)
@@ -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__)));
 }