From: Jani Taskinen Date: Tue, 9 Dec 2008 15:20:58 +0000 (+0000) Subject: - Use version id instead of defined() since latter does not work with magic constants X-Git-Tag: php-5.4.0alpha1~191^2~4850 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d5f137073f6cd184c5fd46de0ca44915f1e1670e;p=php - Use version id instead of defined() since latter does not work with magic constants --- 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__))); }