#27112 [Opn->Bgs]: Problem with GD in php
| From: | pajoye@php.net | Date: | Sun, 01 Feb 2004 09:30:10 +0000 |
| Subject: | #27112 [Opn->Bgs]: Problem with GD in php | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-54243@lists.php.net to get a copy of this message | ||
ID: 27112
Updated by: pajoye@php.net
Reported By: mankaho at lskcf5d dot net
-Status: Open
+Status: Bogus
Bug Type: GD related
Operating System: Linux Mandrake
PHP Version: 4.3.4
New Comment:
See the manual about the configuration directive and the memory limit.
Previous Comments:
------------------------------------------------------------------------
[2004-02-01 02:00:15] mankaho at lskcf5d dot net
Description:
------------
I use a GD in PHP: PHP Version 4.3.3
I get an error with can't allocate memory ....
PHPconfig:
http://expt.lskc.edu.hk/~l99534/info.php
Reproduce code:
---------------
<?
header("Content-type: image/jpeg");
$im_in = imagecreatefromjpeg("1.jpg");
$im_out = imagecreatetruecolor(1024,768);
imagecopyresized($im_out,$im_in,0,0,0,0,800,600,1024,768);
imagejpeg($im_out);
imagedestory($im_out);
?>
Expected result:
----------------
I smaller photo will be generated.. on web browser
Actual result:
--------------
Fatal error: Allowed memory size of 8388608 bytes exhausted at (null):0
(tried to allocate 4096 bytes) in /var/www/html/2003/5d/test/test.php
on line 7
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27112&edit=1