summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJani Taskinen <jani@php.net>2009-04-25 17:12:56 +0000
committerJani Taskinen <jani@php.net>2009-04-25 17:12:56 +0000
commit43670e41bbac38bf122aaf18309932f01ba2a53f (patch)
tree9aee37375ce16004fb2f8185cee3d854fb6b0b69
parentf430db28143fb15622a418ad2aedaf03f585012f (diff)
downloadphp-git-43670e41bbac38bf122aaf18309932f01ba2a53f.tar.gz
MFB52: sync
-rwxr-xr-xrun-tests.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/run-tests.php b/run-tests.php
index ad784fbc25..5d5eaeb65a 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');