php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | |
Patch run-tests-windows-extension-r2.patch for Testing related Bug #75042Patch version 2017-08-07 06:37 UTC Return to Bug #75042 | Download this patchThis patch renders other patches obsolete Obsolete patches: Patch Revisions:Developer: jbboehr@php.netdiff --git a/run-tests.php b/run-tests.php index 8cdaa03b20..b8879cfe46 100755 --- a/run-tests.php +++ b/run-tests.php @@ -1575,15 +1575,16 @@ TEST $file // Additional required extensions if (array_key_exists('EXTENSIONS', $section_text)) { - $ext_dir=`$php -r 'echo ini_get("extension_dir");'`; + $ext_dir=`$php -r "echo ini_get('extension_dir');"`; $extensions = preg_split("/[\n\r]+/", trim($section_text['EXTENSIONS'])); - $loaded = explode(",", `$php -n -r 'echo implode(",", get_loaded_extensions());'`); + $loaded = explode(",", `$php -n -r "echo implode(',', get_loaded_extensions());"`); + $ext_prefix = substr(PHP_OS, 0, 3) === "WIN" ? "php_" : ""; foreach ($extensions as $req_ext) { if (!in_array($req_ext, $loaded)) { if ($req_ext == 'opcache') { - $ini_settings['zend_extension'][] = $ext_dir . DIRECTORY_SEPARATOR . $req_ext . '.' . PHP_SHLIB_SUFFIX; + $ini_settings['zend_extension'][] = $ext_dir . DIRECTORY_SEPARATOR . $ext_prefix . $req_ext . '.' . PHP_SHLIB_SUFFIX; } else { - $ini_settings['extension'][] = $ext_dir . DIRECTORY_SEPARATOR . $req_ext . '.' . PHP_SHLIB_SUFFIX; + $ini_settings['extension'][] = $ext_dir . DIRECTORY_SEPARATOR . $ext_prefix . $req_ext . '.' . PHP_SHLIB_SUFFIX; } } } |
Copyright © 2001-2024 The PHP Group All rights reserved. |
Last updated: Tue Dec 03 17:01:29 2024 UTC |