PHP core error in mail()
| From: | Christian Dechery | Date: | Thu, 13 Sep 2001 19:38:06 +0000 |
| Subject: | PHP core error in mail() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-67264@lists.php.net to get a copy of this message | ||
I wrote a PHP script to send a lot of emails, some of them with lots of bytes that comes from a URL-fopen()'ed ASP page...
the script works fine... but when a large (I don't mean huge... just some 50k worth of HTML data) email is going to be sent, PHP crashes with an error like this "error in emalloc() couldn't alloc -274843 bytes" or something.
So I installed the SAPI version instead... and the error persisted only changing the error message to something like "segment fault in PHP" and crashed again.
Details:
I'm running Win2k Server and I made this tests both in IIS 5 and Apache 1.3.19. (when in Apache, the error messages didn't even show and the HTTP connection was lost - which in my opinion is far worse to debug)
So I wrote a mail function that talks directly to my SMTP server and now it's working...
Well... just to report something that might be a bug or something.