]> granicus.if.org Git - php/commitdiff
MFB52: sync
authorJani Taskinen <jani@php.net>
Sat, 25 Apr 2009 17:12:56 +0000 (17:12 +0000)
committerJani Taskinen <jani@php.net>
Sat, 25 Apr 2009 17:12:56 +0000 (17:12 +0000)
run-tests.php

index ad784fbc25e317d997c95003e3241d43713b0721..5d5eaeb65a2b57e54fee8c0ae97745833809217b 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');