Annotation of embedaddon/php/ext/pdo_sqlite/tests/bug52487.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #52487 (PDO::FETCH_INTO leaks memory)
        !             3: --SKIPIF--
        !             4: <?php # vim:ft=php
        !             5: if (!extension_loaded('pdo_sqlite')) print 'skip not loaded';
        !             6: ?>
        !             7: --FILE--
        !             8: <?php
        !             9: require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
        !            10: $db = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');
        !            11: 
        !            12: $stmt = $db->prepare("select 1 as attr");
        !            13: for ($i = 0; $i < 10; $i++) {
        !            14:        $stmt->setFetchMode(PDO::FETCH_INTO, new stdClass);
        !            15: }
        !            16: 
        !            17: print "ok\n";
        !            18: 
        !            19: ?>
        !            20: --EXPECT--
        !            21: ok

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>