Annotation of embedaddon/php/ext/pdo_dblib/tests/bug_50755.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: PDO_DBLIB: Out of memory on large recordsets
3: --SKIPIF--
4: <?php
5: if (!extension_loaded('pdo_dblib')) die('skip not loaded');
6: require dirname(__FILE__) . '/config.inc';
7: ?>
8: --FILE--
9: <?php
10: require dirname(__FILE__) . '/config.inc';
11:
12: /* This should be sufficient to overflow any buffers */
13: $stmt = $db->prepare("select *
14: from information_schema.columns ic1
15: cross join information_schema.columns ic2
16: cross join information_schema.columns ic3");
17:
18: $x = $stmt->execute();
19: $n = 0;
20: while (($r = $stmt->fetch())) {
21: $n++;
22: }
23: $stmt = null;
24:
25: echo "OK\n";
26:
27: ?>
28: --EXPECT--
29: OK
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>