PHP 4.0 Bug #9816 Updated: FATAL: emalloc(): Unable to allocate
| From: | shazlista at usa dot net | Date: | Tue, 03 Apr 2001 11:50:47 +0000 |
| Subject: | PHP 4.0 Bug #9816 Updated: FATAL: emalloc(): Unable to allocate | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-50677@lists.php.net to get a copy of this message | ||
ID: 9816
User Update by: shazlista@usa.net
Old-Status: Closed
Status: Open
Bug Type: ODBC related
Description: FATAL: emalloc(): Unable to allocate
I am sorry but I have no coments on you ...
In all versions from 4.0.2 till 4.0.4pl1.
Only in win2000 with srvice pack 1 installed.
Only, not in 95,98,me,nt and win2000 with out service pack 1.
This script
<?
$a=odbc_connect("oh","","");
$r=odbc_prepare($a,"SELECT 'a' FROM xx");
odbc_execute($r);
odbc_free_result($r);
odbc_close($a);
?>
where
xx is a table whith 1 integer field and 1 row.
and oh is odbc system dsn for ms access file with only one table (xx).
I get FATAL: emalloc(): Unable to allocate 2147483599 bytes
Previous Comments:
---------------------------------------------------------------------------
[2001-04-01 20:40:00] kalowsky@php.net
A) Unable to reproduce locally on Win98SE, and MSAccess
with 4.0.5RC4
B) which version of PHP are you using? Bug report says
4.0.4pl1, but your sample script suggests 4.0.2 -
4.0.1pl1... which is it?
---------------------------------------------------------------------------
[2001-03-23 03:32:10] shazlista@usa.net
win2000 sp1 php4.0.2 - 4.0.4pl1
<?
$a=odbc_connect("oh","","");
$r=odbc_prepare($a,"SELECT 'a' FROM xx");
odbc_execute($r);
odbc_free_result($r);
odbc_close($a);
?>
xx is a table whith 1 integer field and 1 row.
I try to select constant literal.
("select * from xx" works fine!!!)
I get FATAL: emalloc(): Unable to allocate 2147483599 bytes
!!! all so 2147483599 bytes
---------------------------------------------------------------------------
[2001-03-18 00:00:17] shazlista@usa.net
When I query a "Query" from access with only 2087 rows( each row is 210 bytes size), I get
this error:
FATAL: emalloc(): Unable to allocate 2147483599 bytes
please help!
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=9816