php-src/ext/sqlite3/tests/sqlite3_prepare_001.phpt
2016-09-03 00:56:09 +02:00

19 lines
282 B
PHP

--TEST--
SQLite3 - memory leak on SQLite3Result and SQLite3Stmt
--SKIPIF--
<?php require_once(__DIR__ . '/skipif.inc'); ?>
--FILE--
<?php
function test(&$x) {
$class = new SQLite3(':memory:');
$x = $class->prepare('SELECT 1');
}
test($foo);
echo "done\n";
?>
--EXPECTF--
done