summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/ffi/tests/bug78714.phpt8
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/ffi/tests/bug78714.phpt b/ext/ffi/tests/bug78714.phpt
index c99607c11c..a73b37cae1 100644
--- a/ext/ffi/tests/bug78714.phpt
+++ b/ext/ffi/tests/bug78714.phpt
@@ -6,7 +6,13 @@ Bug #78714 (funcs returning pointer can't use call convention spec)
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 = '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--