Skip test for clang builds

On Windows, clang builds don't use __vectorcall, so executing this test
does not make sense.
This commit is contained in:
Christoph M. Becker 2019-12-27 15:01:09 +01:00
parent 1b0a79ab3f
commit 58cc66e175

View file

@ -5,6 +5,11 @@ FR #78270 (Usage of __vectorcall convention with FFI)
require_once('skipif.inc'); require_once('skipif.inc');
if (substr(PHP_OS, 0, 3) != 'WIN') die("skip this test is for Windows platforms only"); if (substr(PHP_OS, 0, 3) != 'WIN') die("skip this test is for Windows platforms only");
ob_start();
phpinfo(INFO_GENERAL);
$info = ob_get_clean();
if (preg_match('/Compiler => .*clang.*/', $info)) die("skip not for clang");
$dll = 'php7' . (PHP_ZTS ? 'ts' : '') . (PHP_DEBUG ? '_debug' : '') . '.dll'; $dll = 'php7' . (PHP_ZTS ? 'ts' : '') . (PHP_DEBUG ? '_debug' : '') . '.dll';
try { try {
FFI::cdef(<<<EOC FFI::cdef(<<<EOC