]> granicus.if.org Git - php/commitdiff
Merge branch 'PHP-7.4'
authorChristoph M. Becker <cmbecker69@gmx.de>
Mon, 11 Nov 2019 11:56:32 +0000 (12:56 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Mon, 11 Nov 2019 11:56:55 +0000 (12:56 +0100)
* PHP-7.4:
  Fix test case for Windows

1  2 
ext/ffi/tests/bug78714.phpt

index c99607c11c419a61be58bfba501d43315ea57d88,1acac06ffebec8898d0e0199524b132c8d59441f..a73b37cae11505b4f21ba3bb1c1822d79c476ab0
@@@ -6,7 -6,13 +6,13 @@@ Bug #78714 (funcs returning pointer can
  ffi.enable=1
  --FILE--
  <?php
- $ffi = FFI::cdef('char * __cdecl get_zend_version(void);');
+ $def = 'char * __cdecl get_zend_version(void);';
+ if (substr(PHP_OS, 0, 3) != 'WIN') {
+     $ffi = FFI::cdef($def);
+ } else {
 -    $dll = 'php7' . (PHP_ZTS ? 'ts' : '') . (PHP_DEBUG ? '_debug' : '') . '.dll';
++    $dll = 'php8' . (PHP_ZTS ? 'ts' : '') . (PHP_DEBUG ? '_debug' : '') . '.dll';
+     $ffi = FFI::cdef($def, $dll);
+ }
  echo substr(FFI::string($ffi->get_zend_version()), 0, 4) . "\n";
  ?>
  --EXPECT--