From 58cc66e175c501e19adfdd1cc3cedc46c3a875ed Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Fri, 27 Dec 2019 15:01:09 +0100 Subject: [PATCH] Skip test for clang builds On Windows, clang builds don't use __vectorcall, so executing this test does not make sense. --- ext/ffi/tests/bug78270_1.phpt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ext/ffi/tests/bug78270_1.phpt b/ext/ffi/tests/bug78270_1.phpt index 5d5c88b24ef..203e8c330ab 100644 --- a/ext/ffi/tests/bug78270_1.phpt +++ b/ext/ffi/tests/bug78270_1.phpt @@ -5,6 +5,11 @@ FR #78270 (Usage of __vectorcall convention with FFI) require_once('skipif.inc'); 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'; try { FFI::cdef(<<