#25127 [NEW]: error with memory limit

From: Date: Mon, 18 Aug 2003 13:44:52 +0000
Subject: #25127 [NEW]: error with memory limit
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-46095@lists.php.net to get a copy of this message
From: henrik dot gebauer at web dot de Operating system: Mandrake 9.1 PHP version: 5.0.0b1 (beta1) PHP Bug Type: *General Issues Bug description: error with memory limit Description: ------------ Fatal error: Allowed memory size of 8388608 bytes exhausted at (null):0 (tried to allocate 7936 bytes) in /mnt/win_e/hosts/tests/gallery-creator/step2.php on line 67 The line contains and imagecreatefromjpeg() call. With reloading the script, the allowed memory size appears to grow. After the 5th reload I get the error: Fatal error: Allowed memory size of 18901728 bytes exhausted at (null):0 (tried to allocate 7936 bytes) in /mnt/win_e/hosts/tests/gallery-creator/step2.php on line 67 I compiled PHP as a module for Apache 2 with --enable-memory-limit Reproduce code: --------------- <?php $image = imagecreatefromjpeg('image.jpeg'); echo 'success'; ?> Expected result: ---------------- success Actual result: -------------- Fatal error: Allowed memory size of 8388608 bytes exhausted at (null):0 (tried to allocate 7936 bytes) in /mnt/win_e/hosts/tests/gallery-creator/step2.php on line 67 -- Edit bug report at http://bugs.php.net/?id=25127&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25127&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25127&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25127&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25127&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25127&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25127&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25127&r=support Expected behavior: http://bugs.php.net/fix.php?id=25127&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25127&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25127&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25127&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25127&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25127&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25127&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25127&r=gnused

« previous php.bugs (#46095) next »