Php ftp_* eats memory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php5 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hi!
Today i write a small "Transport"-Class for my web deployment-System. Its a php-Script "behind" apache2 where i can post json_arrays to and the deployserver than starts to get git-Repository, check files and deploy them by ftp, ftps and so on.
I wonmder about memory usage when in transfer big projects (typo3-Projects for example). I use xdebug to find memory leaks and firgure out that ftp_* Commands in php are the "memory eater".
So i write a small script that only connects to a ftp-server and ftp_put a file 10000 times and then close the connection.
Result: The memory gets lower and lower and also after ftp_close never will be free'd. Only a restart of apache2 helps.
Some Informations:
Description: Ubuntu 12.04 LTS
Release: 12.04
PHP 5.3.10-1ubuntu3.1 with Suhosin-Patch (cli) (built: May 4 2012 02:20:36)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
Server version: Apache/2.2.22 (Ubuntu)
Server built: Feb 13 2012 01:51:50
[PHP Modules]
apc
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
ereg
exif
fileinfo
filter
ftp
gettext
hash
iconv
imagick
json
libxml
mbstring
memcache
mhash
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
readline
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
zip
zlib
[Zend Modules]
affects: | ubuntu → php5 (Ubuntu) |
Changed in php5 (Ubuntu): | |
status: | Expired → Confirmed |
Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.
To change the source package that this bug is filed about visit https:/ /bugs.launchpad .net/ubuntu/ +bug/1044430/ +editstatus and add the package name in the text box next to the word Package.
[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]