php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19846 FATAL: emalloc(): Unable to allocate 170864426 bytes when using imap function
Submitted: 2002-10-10 06:57 UTC Modified: 2002-10-12 09:49 UTC
From: jesper at sivertsen dot org Assigned:
Status: Not a bug Package: IMAP related
PHP Version: 4.2.2 OS: HP-UX 11.11
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jesper at sivertsen dot org
New email:
PHP Version: OS:

 

 [2002-10-10 06:57 UTC] jesper at sivertsen dot org
Using pre-compiled apache 1.3.26 and php 4.2.2 as module from HP.

Made imap extension with hp-ansi/c compiler  CFLAGS=-Ae +DA1.1 +DS2.0 +z

cd /opt/php-4.2.2/ext/imap
phpize
./configure --with-imap=/opt/imap-2002.RC7/c-client --with-imap-ssl=/opt/apache/ssl
make

linked by hand with c-client "ld -b -o imap.sl *.o"

Moved imap.sl to /opt/apache/php/lib/php/extension/imap.sl

I get following error in apache error_log:
FATAL:  emalloc():  Unable to allocate 170864426 bytes

when i try to use imap-functions, and no result in th ebrowser !

I have build other extension like oci8.sl, gd.sl, calendar.sl and ftp.sl that works the same way !

Hope sombody can help mee with this, i can se in the bug-database that there have been
simmular problems in Windows erlier ?

I have tryed the same with php 4.2.3 and with older c-clients but same error.

Best regards
Jesper Sivertsen

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-10 08:24 UTC] yohgaki@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
 [2002-10-10 08:26 UTC] yohgaki@php.net
Before try to get backtrace, please try cvs version also.
 [2002-10-10 08:48 UTC] sniper@php.net
What exactly do you mean with 'linked by hand' ?????
You're very likely doing something that your shouldn't 
be doing..why don't you compile it as static extension?

 [2002-10-10 09:24 UTC] jesper at sivertsen dot org
Mayby dumm question, hove do i load a static-module ?
By the way i do not have a core !
Jesper
 [2002-10-12 09:49 UTC] sniper@php.net
Compile the exts into PHP itself. ie. don't use phpize to
compile such core extensions.
You're obviously doing something wrong when linking and
haven't even linked all necessary libs with them..

reopen if imap extension does not work when configured as normal extension. (and not as shared!)


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 20:01:29 2024 UTC