ID:               27112
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to