PHP ODBC error: tried to allocate 4294967293 bytes -


i've been trying make work whole day , think need help. have read/tried lot of related posts here nothing seems solve problem.

i'm getting error:

fatal error: out of memory (allocated 524288) (tried allocate 4294967293 bytes) in c:\inetpub\wwwroot\sandbox\odbc.php on line 26

when executing following code:

$query = "select * table";  $res = odbc_exec($connection, $query);  while( $row = odbc_fetch_array($res) ) {     print_r($row);  } 

the "line 26" referred error message line.

while( $row = odbc_fetch_array($res) ) 

other info: running php version 5.3.24 on iis 7, windows server 2008; php memory_limit: 500m (have come increase insanely high after lower numbers didn't work)

please help. thanks!

i ran exact same error , turned out table selecting had field of type nvarchar(max). reducing length of field (to nvarchar(100), example) resolved issue me.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -