File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / pdo_dblib / tests / bug_50755.phpt
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue May 29 12:34:41 2012 UTC (12 years, 3 months ago) by misho
CVS tags: MAIN, HEAD
Initial revision

--TEST--
PDO_DBLIB: Out of memory on large recordsets
--SKIPIF--
<?php
if (!extension_loaded('pdo_dblib')) die('skip not loaded');
require dirname(__FILE__) . '/config.inc';
?>
--FILE--
<?php
require dirname(__FILE__) . '/config.inc';

/* This should be sufficient to overflow any buffers */
$stmt = $db->prepare("select *
from information_schema.columns ic1
cross join information_schema.columns ic2
cross join information_schema.columns ic3");

$x = $stmt->execute();
$n = 0;
while (($r = $stmt->fetch())) {
	$n++;
}
$stmt = null;

echo "OK\n";

?>
--EXPECT--
OK

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