mirror of
https://github.com/php/php-src.git
synced 2024-11-27 11:53:33 +08:00
280485adc1
We add Windows support to four existing test cases, extract some useful utility functions, and use them to simplify further test cases. We also remove the Windows specific code from preload.inc, since preloading isn't supported on Windows anyway.
16 lines
368 B
PHP
16 lines
368 B
PHP
--TEST--
|
|
Bug #78714 (funcs returning pointer can't use call convention spec)
|
|
--SKIPIF--
|
|
<?php require_once('skipif.inc'); ?>
|
|
--INI--
|
|
ffi.enable=1
|
|
--FILE--
|
|
<?php
|
|
require_once('utils.inc');
|
|
$def = 'char * __cdecl get_zend_version(void);';
|
|
$ffi = ffi_cdef($def, ffi_get_php_dll_name());
|
|
echo substr(FFI::string($ffi->get_zend_version()), 0, 4) . "\n";
|
|
?>
|
|
--EXPECT--
|
|
Zend
|