dis-bench / src /php /php-src /ext /ffi /tests /010.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
242 Bytes
--TEST--
FFI 010: string()
--EXTENSIONS--
ffi
--INI--
ffi.enable=1
--FILE--
<?php
$a = FFI::cdef()->new("int[3]");
FFI::memset($a, ord("a"), FFI::sizeof($a));
var_dump(FFI::string($a, FFI::sizeof($a)));
?>
--EXPECT--
string(12) "aaaaaaaaaaaa"