1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/pdo_sqlite/tests/bug52487.phpt
Nikita Popov 7485978339 Migrate SKIPIF -> EXTENSIONS (#7138)
This is an automated migration of most SKIPIF extension_loaded checks.
2021-06-11 11:57:42 +02:00

20 lines
369 B
PHP

--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