]> granicus.if.org Git - php/commitdiff
Merge branch 'PHP-7.4'
authorChristoph M. Becker <cmbecker69@gmx.de>
Fri, 27 Dec 2019 14:11:51 +0000 (15:11 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Fri, 27 Dec 2019 14:11:51 +0000 (15:11 +0100)
* PHP-7.4:
  Skip test for clang builds

1  2 
ext/ffi/tests/bug78270_1.phpt

index 7ad9776c7f6f6e2a0e8465614c64ea599049748a,203e8c330ab5c845118c8832cdf53138313bdd5d..c918393bd93b859be8d54bbec6d8f2245f17101f
@@@ -5,7 -5,12 +5,12 @@@ FR #78270 (Usage of __vectorcall conven
  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);