File size: 369 Bytes
1e94262 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | --TEST--
Bug #52487 (PDO::FETCH_INTO leaks memory)
--EXTENSIONS--
pdo_sqlite
--FILE--
<?php
require __DIR__ . '/../../../ext/pdo/tests/pdo_test.inc';
$db = PDOTest::test_factory(__DIR__ . '/common.phpt');
$stmt = $db->prepare("select 1 as attr");
for ($i = 0; $i < 10; $i++) {
$stmt->setFetchMode(PDO::FETCH_INTO, new stdClass);
}
print "ok\n";
?>
--EXPECT--
ok
|