com php-src: Allow for special case for the opcache zend extension: run-tests.php

From: Date: Tue, 10 May 2016 19:40:03 +0000
Subject: com php-src: Allow for special case for the opcache zend extension: run-tests.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-92084@lists.php.net to get a copy of this message
Commit: c35bd4861d498153ceb6839049b42c8bd5dd5c16 Author: Derick Rethans <github@derickrethans.nl> Tue, 10 May 2016 15:40:03 -0400 Parents: 0718aa5833aad200c7655e9facf9ed4004b84bcc Branches: PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c35bd4861d498153ceb6839049b42c8bd5dd5c16 Log: Allow for special case for the opcache zend extension Changed paths: M run-tests.php Diff: diff --git a/run-tests.php b/run-tests.php index 96733e5..66fcdd7 100755 --- a/run-tests.php +++ b/run-tests.php @@ -1547,7 +1547,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; + } } } } @@ -2374,7 +2378,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();

« previous php.cvs (#92084) next »