[Bug 1044430] [NEW] Php ftp_* eats memory
Launchpad Bug Tracker
1044430 at bugs.launchpad.net
Fri Aug 31 18:21:31 UTC 2012
You have been subscribed to a public bug:
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: php5 (Ubuntu)
Importance: Undecided
Status: New
** Tags: bot-comment
--
Php ftp_* eats memory
https://bugs.launchpad.net/bugs/1044430
You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to php5 in Ubuntu.
More information about the Ubuntu-server-bugs
mailing list