mirror of
https://github.com/php/php-src.git
synced 2025-08-21 01:45:16 +02:00
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:
parent
1b0a79ab3f
commit
58cc66e175
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue