Skip to content

Commit 58cc66e

Browse files
committed
Skip test for clang builds
On Windows, clang builds don't use __vectorcall, so executing this test does not make sense.
1 parent 1b0a79a commit 58cc66e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ext/ffi/tests/bug78270_1.phpt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ FR #78270 (Usage of __vectorcall convention with FFI)
55
require_once('skipif.inc');
66
if (substr(PHP_OS, 0, 3) != 'WIN') die("skip this test is for Windows platforms only");
77

8+
ob_start();
9+
phpinfo(INFO_GENERAL);
10+
$info = ob_get_clean();
11+
if (preg_match('/Compiler => .*clang.*/', $info)) die("skip not for clang");
12+
813
$dll = 'php7' . (PHP_ZTS ? 'ts' : '') . (PHP_DEBUG ? '_debug' : '') . '.dll';
914
try {
1015
FFI::cdef(<<<EOC

0 commit comments

Comments
 (0)