php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8445 FATAL: emalloc():
Submitted: 2000-12-27 19:03 UTC Modified: 2001-01-09 10:56 UTC
From: rthaller at net-flow dot com Assigned:
Status: Closed Package: ODBC related
PHP Version: 4.0.4 OS: Windows 2000 SP1
Private report: No CVE-ID: None
 [2000-12-27 19:03 UTC] rthaller at net-flow dot com
When executing the following:

<?php
  $connect = odbc_connect("dsn", "user", "pass");
  $query = "select * from Banking_Services";
  $result = odbc_do($connect, $query);  
  odbc_result_all($result, "BORDER=1");
  odbc_close_all();
?>

I get an error, FATAL: emalloc(): Unable to allocate 1073741824 bytes. I am using PHP 4.04 on Windows 2000 SP1 connecting via ODBC to a MSSQL 7.0 SQL Server. I installed PHP from the installer version of the win32 binarys. The script above will work fine if I select a table that does NOT have a field defined as "TEXT" or if I do a selective select without the field defined as "TEXT". I have install NO additional extentions or made any modifications to php.ini.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-09 10:56 UTC] cynic@php.net
seems like your resultset is quite big: about 1GB. do you have enough memory in that machine?

if this is not the problem, reopen the bug report.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 04:01:30 2024 UTC