ID: 27112 Updated by: [EMAIL PROTECTED] Reported By: mankaho at lskcf5d dot net Status: Bogus Bug Type: GD related Operating System: Linux Mandrake PHP Version: 4.3.3 New Comment:
It's php.ini. Other questions should be posted on the php general list. hth pierre Previous Comments: ------------------------------------------------------------------------ [2004-02-01 06:03:36] mankaho at lskcf5d dot net Is is the php.ini or apache2 problem? Which file should i config .. ?The pgp.ini or httpd.? ------------------------------------------------------------------------ [2004-02-01 04:30:09] [EMAIL PROTECTED] See the manual about the configuration directive and the memory limit. ------------------------------------------------------------------------ [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
