1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/ext/ffi/tests/bug78762.phpt

15 lines
276 B
PHP

--TEST--
Bug #78762 (Failing FFI::cast() may leak memory)
--EXTENSIONS--
ffi
--FILE--
<?php
try {
FFI::cdef()->cast('char[10]', FFI::cdef()->new('char[1]'));
} catch (FFI\Exception $ex) {
echo $ex->getMessage(), PHP_EOL;
}
?>
--EXPECT--
attempt to cast to larger type