php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10207 Crash sending files as attachment
Submitted: 2001-04-06 08:55 UTC Modified: 2002-07-07 09:52 UTC
From: anh at maersk-it dot dk Assigned:
Status: Not a bug Package: Mail related
PHP Version: Earlier? Upgrade first! OS: NT Server
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
3 + 49 = ?
Subscribe to this entry?

 
 [2001-04-06 08:55 UTC] anh at maersk-it dot dk
I'm trying to attach a file to a mail, that I'm sending with the mail()-function. To attach the file I'm using the class named Mime_Mail.inc  (Comes from Wrox: Pro. PHP programming). 

But when the files gets a size about 1000 bytes, php.exe comes with this error-message:

------------------------------------------
OleMainThreadName: php.exe - Application Error

The instruction at "0x00449bc4" referenced memory at "0x0048a000". The memory could not be "written".
------------------------------------------

I'm using fopen() and fread() to read the content of my files into a string. Then I give this string to the Mime_Mail class. And when it try to send the Multiparted mail with Mail() the above error raises.

Yours, Anders Hansen
System Developer
Maersk-IT - Denmark

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-06 11:15 UTC] sniper@php.net
And what is the version of PHP 4 you're using?
If it's not PHP 4.0.4pl1 then upgrade!

--Jani

 [2001-04-09 07:27 UTC] anh at maersk-it dot dk
I have now upgraded to PHP4, but that only resulted in, that PHP raised one more error. I lookes like this:

---------- New Error -----------------
OleMainThreadName: php.exe - Application Error
The instruction at "0x00449bc4" referenced memory at "0x0048a000". The memory could not be "read".
--------------------------------------

---------- Old error ------------------
OleMainThreadName: php.exe - Application Error
The instruction at "0x00459bc4" referenced memory at "0x0048a000". The memory could not be "written".
---------------------------------------

Im using PWS 4.0 on a NT workstation.
PHP Version 4.0.4pl1 CGI edition

Should I send you the sourcecode for my example. It's not very big?

/Anders
 [2001-04-10 09:38 UTC] anh at maersk-it dot dk
Shall I e-mail the source?
 [2001-04-10 09:41 UTC] anh at maersk-it dot dk
Shall I e-mail the source?
 [2002-07-07 09:52 UTC] eru@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately your are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 11:01:29 2024 UTC