/
proc
/
3430793
/
root
/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
ffi
/
tests
/
File Upload :
llllll
Current File: //proc/3430793/root/usr/local/lsws/phpbuild/php-8.0.7/ext/ffi/tests/023.phpt
--TEST-- FFI 023: GCC struct extensions --SKIPIF-- <?php require_once('skipif.inc'); ?> --INI-- ffi.enable=1 --FILE-- <?php try { var_dump(FFI::sizeof(FFI::new("struct {}"))); } catch (Throwable $e) { echo get_class($e) . ": " . $e->getMessage() . "\n"; } var_dump(FFI::sizeof(FFI::new("struct {int a}"))); var_dump(FFI::sizeof(FFI::new("struct {int a; int b}"))); ?> ok --EXPECT-- FFI\Exception: Cannot instantiate FFI\CData of zero size int(4) int(8) ok
Copyright ©2k19 -
Hexid
|
Tex7ure