fopen 'php://memory'

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
rilpo
Forum Newbie
Posts: 1
Joined: Sat Aug 15, 2009 9:45 am

fopen 'php://memory'

Post by rilpo »

Hello,

First thanks for this great work..
I just wanted to say that I had some issues with the host server i used.

In the code of ArrayCharacterStream.php of swiftmail on ligne 212 :
$fp = fopen('php://memory', 'w+b');

The opening of php://memory caused me security problems. The host server (which is free.fr) said me "Too curious". It seems that php://memory is just like a temporary file so I replaced it by a 'tmp.txt' and it worked (for now).

Is this a good solution ? Maybe you could make the name of this file (or whatever it is) modifiable ?
I think this is more a problem comming from free.fr but just in case..

My Swift vzersion : 4.0.4
PHP : 5.1
transport : Swift_MailTransport
Post Reply