]> granicus.if.org Git - php/commitdiff
- Fix bad check (Hannes, please test stuff you commit..)
authorJani Taskinen <jani@php.net>
Sat, 25 Apr 2009 16:54:50 +0000 (16:54 +0000)
committerJani Taskinen <jani@php.net>
Sat, 25 Apr 2009 16:54:50 +0000 (16:54 +0000)
run-tests.php

index add93bba304414d3db1de7099541814e2301c757..dcfad0b5ccd9a671c4ecb3dd5a00adf9885da802 100755 (executable)
@@ -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');