bug_50755.phpt 565 B

1234567891011121314151617181920212223242526272829
  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. /* This should be sufficient to overflow any buffers */
  12. $stmt = $db->prepare("select *
  13. from information_schema.columns ic1
  14. cross join information_schema.columns ic2
  15. cross join information_schema.columns ic3");
  16. $x = $stmt->execute();
  17. $n = 0;
  18. while (($r = $stmt->fetch())) {
  19. $n++;
  20. }
  21. $stmt = null;
  22. echo "OK\n";
  23. ?>
  24. --EXPECT--
  25. OK