1--TEST--
2SQLite3 - memory leak on SQLite3Result and SQLite3Stmt
3--SKIPIF--
4<?php require_once(__DIR__ . '/skipif.inc'); ?>
5--FILE--
6<?php
7
8function test(&$x) {
9    $class = new SQLite3(':memory:');
10    $x = $class->prepare('SELECT 1');
11}
12
13test($foo);
14
15echo "done\n";
16
17?>
18--EXPECT--
19done
20