I use odbc_connect()to connect the firebird database in a script hosted on Ubuntu 14.04
The request should retrieve only one row
$connect = odbc_connect("EXAMPLE", "GONE", "fishing");
$query = "SELECT REMITTONAME, REMITADDRESS, REMITCITY FROM PO WHERE NUM=10072";
$result = odbc_exec($connect, $query);
Error in line # 3 where I call odbc_exec ($ connect, $ query)
Allowed memory size of 134217728 bytes exhausted (tried to allocate 18063885380364533825 bytes)
I'm surprised why the odbc_exec function is trying to allocate 15.66 exabyte?
My memory limit in php.ini is set to 128M and I tried to increase it to 500M.
memory_limit = 500M
I also tried putting below at the beginning of my script
ini_set('memory_limit', '-1');
I searched everywhere on the Internet, but nothing solved my problem and was still trying to figure out the cause.
Any help would be greatly appreciated.
NOTE.
Not columns selected in query are empty or empty