xref: /PHP-7.4/ext/ffi/tests/bug78714.phpt (revision 280485ad)
1--TEST--
2Bug #78714 (funcs returning pointer can't use call convention spec)
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5--INI--
6ffi.enable=1
7--FILE--
8<?php
9require_once('utils.inc');
10$def = 'char * __cdecl get_zend_version(void);';
11$ffi = ffi_cdef($def, ffi_get_php_dll_name());
12echo substr(FFI::string($ffi->get_zend_version()), 0, 4) . "\n";
13?>
14--EXPECT--
15Zend
16