diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2019-12-27 15:01:09 +0100 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2019-12-27 15:09:19 +0100 |
commit | 58cc66e175c501e19adfdd1cc3cedc46c3a875ed (patch) | |
tree | 24b980ed9028212dfe59ebeec21097c62c05ad05 | |
parent | 1b0a79ab3fedd639af171beb14c1a8f98875800f (diff) | |
download | php-git-58cc66e175c501e19adfdd1cc3cedc46c3a875ed.tar.gz |
Skip test for clang builds
On Windows, clang builds don't use __vectorcall, so executing this test
does not make sense.
-rw-r--r-- | ext/ffi/tests/bug78270_1.phpt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/ffi/tests/bug78270_1.phpt b/ext/ffi/tests/bug78270_1.phpt index 5d5c88b24e..203e8c330a 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(<<<EOC |