summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorDerick Rethans <github@derickrethans.nl>2016-05-10 15:40:09 -0400
committerDerick Rethans <github@derickrethans.nl>2016-05-10 15:40:09 -0400
commit1c49a9fa71a9331d38ba72cc143bb96a920a2944 (patch)
treed31ccd0b197ede3de516256672663f07e049bd47 /run-tests.php
parent208c28f1527e16f114473e12bfbcf55e486671c5 (diff)
parentc35bd4861d498153ceb6839049b42c8bd5dd5c16 (diff)
downloadphp-git-1c49a9fa71a9331d38ba72cc143bb96a920a2944.tar.gz
Merge branch 'PHP-7.0'
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/run-tests.php b/run-tests.php
index d17ffe4baf..fd4e12081f 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -1509,7 +1509,11 @@ TEST $file
$loaded = explode(",", `$php -n -r 'echo join(",", get_loaded_extensions());'`);
foreach ($extensions as $req_ext) {
if (!in_array($req_ext, $loaded)) {
- $ini_settings['extension'][] = $ext_dir . DIRECTORY_SEPARATOR . $req_ext . '.' . PHP_SHLIB_SUFFIX;
+ if ($req_ext == 'opcache') {
+ $ini_settings['zend_extension'][] = $ext_dir . DIRECTORY_SEPARATOR . $req_ext . '.' . PHP_SHLIB_SUFFIX;
+ } else {
+ $ini_settings['extension'][] = $ext_dir . DIRECTORY_SEPARATOR . $req_ext . '.' . PHP_SHLIB_SUFFIX;
+ }
}
}
}
@@ -2336,7 +2340,7 @@ function settings2array($settings, &$ini_settings)
$name = trim($setting[0]);
$value = trim($setting[1]);
- if ($name == 'extension') {
+ if ($name == 'extension' || $name == 'zend_extension') {
if (!isset($ini_settings[$name])) {
$ini_settings[$name] = array();