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