php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8340 Unable to handle MS SQL's ntext data type. Fails with FATAL: emalloc(): Unable
Submitted: 2000-12-20 12:23 UTC Modified: 2001-05-11 21:18 UTC
From: myers at fil dot org Assigned:
Status: Closed Package: ODBC related
PHP Version: 4.0.3pl1 OS: Windows NT 4.0
Private report: No CVE-ID: None
 [2000-12-20 12:23 UTC] myers at fil dot org
Using MS SQL via ODBC.   Any time I tried to select a field from the database that had the type 'ntext' it failed with this error:

FATAL: emalloc(): Unable to allocate 1073741824 bytes 

What's weird is that this is the same amount of memory that someone ran into in bug #1299, thus I think we're on to the same bug.

also check out http://lists.omnipotent.net/php3/200003/msg00552.html
http://infosoc.uni-koeln.de/pipermail/php/Week-of-Mon-20000214/014693.html (in Germany... not sure what their saying but the number is the same).


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-06 03:18 UTC] cynic@php.net
duplicate of #8541

fmk@php.net:
This is not an error in the MS SQL extension, as you are using ODBC functions to fetch data.
Microsofts new datatypes ntext nad nvarchar is not suported in the MS SQL extension, as they are not supported in Microsofts C-library. The will always be returned as a varchar with a max length of 255 bytes.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 19:01:31 2024 UTC