title: PHP ODBC error: tried to allocate 4294967293 bytes
body: <p>I've Been trying to make this work for a whole day and think I need help. I have read/tried a lot of related posts here but nothing seems to solve the problem.</p>
  
  <p>I'm getting this error:</p>
  
  <p><code>Fatal error: Out of memory (allocated 524288) (tried to allocate 4294967293 bytes) in C:\inetpub\wwwroot\sandbox\odbc.php on line 26</code></p>
  
  <p>when executing the following code:</p>
  
  <pre><code>$query = "SELECT * FROM table"; 
  $res = odbc_exec($connection, $query); 
  while( $row = odbc_fetch_array($res) )
  { 
     print_r($row); 
  }
  </code></pre>
  
  <p>The "line 26" referred to by the error message is this line.</p>
  
  <pre><code>while( $row = odbc_fetch_array($res) )
  </code></pre>
  
  <p>Other info:
  Running PHP version 5.3.24 on IIS 7, Windows Server 2008;
  PHP memory_limit: 500M (have come to increase this insanely high after lower numbers didn't work)</p>
  
  <p>Please help. Thanks!</p>