#26231 [NEW]: Memory errors with createimagefromjpeg
| From: | mike at blueroot dot net | Date: | Thu, 13 Nov 2003 02:36:16 +0000 |
| Subject: | #26231 [NEW]: Memory errors with createimagefromjpeg | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-50312@lists.php.net to get a copy of this message | ||
From: mike at blueroot dot net
Operating system: Linux
PHP version: 4.3.3
PHP Bug Type: GD related
Bug description: Memory errors with createimagefromjpeg
Description:
------------
When trying to create a gd image resource from this jpeg
http://www.blueroot.net/~mike/wrc2003/dscf0216.jpg
I get this error
Fatal error: Allowed memory size of 8388608 bytes exhausted at (null):0
(tried to allocate 6400 bytes) in /home/mike/public_html/wrc2003/test.php
on line 5
The file is 778061 bytes.
This only happens with certain jpegs (straight from my camera), pictures
that have been through gimp open perfectly.
# file ./dscf0216.jpg
./dscf0216.jpg: JPEG image data, EXIF standard 0.77, 42 x 0
this is the output from 'file' on the problem file.
Reproduce code:
---------------
$im = imagecreatefromjpeg("./dscf0216.jpg");
online here
http://www.blueroot.net/~mike/wrc2003/test.php
Expected result:
----------------
Nothing (eg. no error)
Actual result:
--------------
Fatal error: Allowed memory size of 8388608 bytes exhausted at (null):0
(tried to allocate 6400 bytes) in /home/mike/public_html/wrc2003/test.php
on line 5
--
Edit bug report at http://bugs.php.net/?id=26231&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26231&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26231&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26231&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26231&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26231&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=26231&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26231&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26231&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26231&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26231&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26231&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26231&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26231&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26231&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26231&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26231&r=float