Bug #12667 Updated: Memory Hole Problems
| From: | derick@php.net | Date: | Tue, 28 May 2002 17:03:45 +0000 |
| Subject: | Bug #12667 Updated: Memory Hole Problems | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-8778@lists.php.net to get a copy of this message | ||
ID: 12667
Updated by: derick@php.net
Reported By: j.alberti@dongleware.net
-Status: Open
+Status: Bogus
Bug Type: IMAP related
Operating System: Linux 2.2.16
PHP Version: 4.0.6
New Comment:
Thank you for taking the time to report a problem with PHP.
Unfortunately your version of PHP is too old -- 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.
Previous Comments:
------------------------------------------------------------------------
[2001-08-08 19:52:47] j.alberti@dongleware.net
DEAR PHP TEAM, MANY THANKS AND "YOU HAVE DONE GREAT WORK". I'm sure you
know ;-). But i have (found) a problem. ;-) Please give me a feedback,
Thanks.
#!/usr/sbin/php
<?
$envelope["from"]="foo@bar.com";
$envelope["to"]="bar@foo.com";
$envelope["subject"]="while testing";
$part1["type"]=TYPEMULTIPART;
$part1["subtype"]="mixed";
$part3["type"]=TEXT;
$part3["sybtype"]="plain";
$part3["contents.data"]="Look at this\n\n\t";
$filename="1.tar.gz";
$fp=fopen($filename,"r");
$contents=fread($fp,filesize($filename));
fclose($fp);
$part2["type"]=TYPEAPPLICATION;
$part2["encoding"]=ENCBINARY;
$part2["subtype"]="octet-stream";
$part2["description"]=basename($filename);
$part2["contents.data"]=$contents;
$body[]=$part1;
$body[]=$part2;
$body[]=$part3;
$i=0;
while ($i <= 500) {
$email=imap_mail_compose($envelope,$body);
echo "$email\n\n";
sleep(5);
$i++;
}
?>
'./configure' ('--with-apache=../apache_1.3.12' this one is is not a
module, is running as a cron job) '--enable-ftp'
'--with-mysql=/usr/local/' '--with-pdflib' '--with-jpeg-dir'
'--with-png-dir' '--with-tiff-dir' '--with-zlib'
'--with-imap=/usr/src/packages/SOURCES/imap-4.7/c-client/'
The Memory usage percentage growth and growth while loop is running.
Please give me a feedback.
I workaround the problem, now with base64_encode and little scripting
for header of parts (about 30 lines)// email me if you want it ;-), and
the memory usage with a 2MB file is stable at 1.1 % with
imap_mail_compose it starts with about 8% and the VM kills it after 70
loops sending mail not only generate at about 80%, my computer does
have 192M RAM.
Best regards,
Johannes
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=12667&edit=1