We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60081ca commit ce047e6Copy full SHA for ce047e6
ext/ffi/tests/bug78714.phpt
@@ -6,7 +6,13 @@ Bug #78714 (funcs returning pointer can't use call convention spec)
6
ffi.enable=1
7
--FILE--
8
<?php
9
-$ffi = FFI::cdef('char * __cdecl get_zend_version(void);');
+$def = 'char * __cdecl get_zend_version(void);';
10
+if (substr(PHP_OS, 0, 3) != 'WIN') {
11
+ $ffi = FFI::cdef($def);
12
+} else {
13
+ $dll = 'php7' . (PHP_ZTS ? 'ts' : '') . (PHP_DEBUG ? '_debug' : '') . '.dll';
14
+ $ffi = FFI::cdef($def, $dll);
15
+}
16
echo substr(FFI::string($ffi->get_zend_version()), 0, 4) . "\n";
17
?>
18
--EXPECT--
0 commit comments