#43757 [Com]: imagecreatefromjpeg error
| From: | kiclaw at o2 dot pl | Date: | Fri, 25 Jan 2008 14:38:25 +0000 |
| Subject: | #43757 [Com]: imagecreatefromjpeg error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-121531@lists.php.net to get a copy of this message | ||
ID: 43757
Comment by: kiclaw at o2 dot pl
Reported By: xfreelancer at yahoo dot com
Status: No Feedback
Bug Type: GD related
Operating System: CentOS
PHP Version: 5.2.5
Assigned To: pajoye
New Comment:
Here are two sample images causing this problem:
http://static.geozeta.pl/content/images/S601.JPG
http://static.geozeta.pl/content/images/S602.JPG
Previous Comments:
------------------------------------------------------------------------
[2008-01-13 01:00:00] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2008-01-05 11:47:24] pajoye@php.net
Please provide an example of images causing this problem, paste a link
to them here.
------------------------------------------------------------------------
[2008-01-05 06:01:25] xfreelancer at yahoo dot com
In case you need more information about our PHP voila phpinfo():
PHP Version 5.2.5
System Linux xxx.xx 2.6.21-1.3194.fc7 #1 SMP Wed May 23 22:35:01 EDT
2007 i686
Build Date Dec 31 2007 13:26:06
Configure Command './configure' '--disable-all' '--with-pcre-regex'
'--enable-simplexml' '--enable-libxml' '--enable-session'
'--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysql'
'--enable-ftp'
'--with-config-file-path=/etc' '--with-freetype-dir=/usr/lib'
'--with-png-dir=/usr/lib' '--with-gd' '--enable-gd-native-ttf'
'--with-zlib' '--with-jpeg-dir=/usr/lib' '--with-gmp'
'--with-openssl'
'--with-pear' '--enable-xml' '--with-curl'
'--with-config-file-path=/etc'
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc
Loaded Configuration File /etc/php.ini
PHP API 20041225
PHP Extension 20060613
Zend Extension 220060519
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams php, file, data, http, ftp, compress.zlib,
https, ftps
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3,
sslv2, tls
Registered Stream Filters string.rot13, string.toupper,
string.tolower, string.strip_tags, convert.*, consumed, zlib.*
AND
gd
GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.3.4
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
------------------------------------------------------------------------
[2008-01-05 05:56:51] xfreelancer at yahoo dot com
Dear Pajoye,
I have increased the memory limit from 32Mb, to 128Mb, then to 256Mb
and so on.
The bug/problem still appears.
It seems that on SOME jpeg images (which are perfectly fine) PHP is
eating MY ENTIRE memory.
At the beginning I thought it's just one jpeg that generates this
problem, but then I've seen the same error on different
servers/configuration on our network (we have like 15 servers, located
on different ISP etc.)
Please investigate the problem and do not tell me over and over again
to increase the memory limit because as I've said MANY TIMES I did that
already and it is clear that PHP is eating the entire memory without
reason.
At the moment we already receive this error more than 50-60 times/day
(we have many community websites where people are uploading their
photos).
Thank you.
(I can provide full production enviroment for tests if needed)
------------------------------------------------------------------------
[2008-01-05 05:53:45] xfreelancer at yahoo dot com
Description:
------------
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to
allocate 26320 bytes) in /home/test.php on line 4
Reproduce code:
---------------
$ims=imagecreatefromjpeg("90-9bb2.jpg");
Expected result:
----------------
$ims should contain the jpg photo.
Actual result:
--------------
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to
allocate 26320 bytes) in /home/test.php on line 4
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43757&edit=1