From: Jani Taskinen Date: Sat, 25 Apr 2009 16:54:50 +0000 (+0000) Subject: - Fix bad check (Hannes, please test stuff you commit..) X-Git-Tag: php-5.2.10RC1~189 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=030bfc24ab251fdb846ca3946d772f33c2963f1b;p=php - Fix bad check (Hannes, please test stuff you commit..) --- diff --git a/run-tests.php b/run-tests.php index add93bba30..dcfad0b5cc 100755 --- a/run-tests.php +++ b/run-tests.php @@ -71,14 +71,15 @@ if (!defined("PHP_VERSION_ID")) { define("PHP_MAJOR_VERSION", $major); } -// __DIR__ and FILE_BINARY is available from 5.3.0 +// __DIR__ is available from 5.3.0 if (PHP_VERSION_ID < 50300) { define('__DIR__', realpath(dirname(__FILE__))); - define('FILE_BINARY', 0); + // FILE_BINARY is available from 5.2.7 + if (PHP_VERSION_ID < 50207) { + define('FILE_BINARY', 0); + } } - - // If timezone is not set, use UTC. if (ini_get('date.timezone') == '') { date_default_timezone_set('UTC');