php-src/ext/sqlite3/tests/sqlite3_prepare_001.phpt
2011-09-06 07:29:59 +00:00

20 lines
292 B
PHP

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