From: Jani Taskinen Date: Tue, 9 Dec 2008 15:21:15 +0000 (+0000) Subject: MFH X-Git-Tag: php-5.3.0beta1~475 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b2a2aaff93e567ecaf9f568d26810ad6b4e062cf;p=php MFH --- 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__))); }