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