ID: 46433 User updated by: ak at pre-secure dot de Reported By: ak at pre-secure dot de -Status: Feedback +Status: Open Bug Type: GD related Operating System: Linux (OpenSUSE) PHP Version: 5.2.6 New Comment:
I have to admit that my initial bugreport is a litte bit too unspecific. The memory problem only occures if the image is "tainted", f.e. taking a valid png and change a arbitrary line in the source. This will result in an error like this: PHP Warning: imagecreatefrompng(): gd-png: fatal libpng error: IDAT: CRC error in ---- and a rapid growth of the memory usage. Previous Comments: ------------------------------------------------------------------------ [2008-10-30 16:49:46] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://windows.php.net/snapshots/ I can't reproduce it using 5.2.7CVS. ------------------------------------------------------------------------ [2008-10-30 16:49:23] crrodriguez at opensuse dot org memory usage is constant for me, are you sure you are using version 5.2.6 ? ------------------------------------------------------------------------ [2008-10-30 16:42:03] ak at pre-secure dot de Description: ------------ When trying to create an image from a file and an error occures PHP will lose some memory. Reproduce code: --------------- while(true) { print "\nMemory: ".memory_get_usage(); imagecreatefrompng("anyimage.png"); } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46433&edit=1
