* PHP-7.4:
Skip test for clang builds
require_once('skipif.inc');
if (substr(PHP_OS, 0, 3) != 'WIN') die("skip this test is for Windows platforms only");
-$dll = 'php7' . (PHP_ZTS ? 'ts' : '') . (PHP_DEBUG ? '_debug' : '') . '.dll';
+ ob_start();
+ phpinfo(INFO_GENERAL);
+ $info = ob_get_clean();
+ if (preg_match('/Compiler => .*clang.*/', $info)) die("skip not for clang");
+
+$dll = 'php8' . (PHP_ZTS ? 'ts' : '') . (PHP_DEBUG ? '_debug' : '') . '.dll';
try {
FFI::cdef(<<<EOC
__vectorcall int zend_atoi(const char *str, size_t str_len);