#25127 [Opn->Fbk]: error with memory limit
| From: | sniper@php.net | Date: | Mon, 18 Aug 2003 14:18:56 +0000 |
| Subject: | #25127 [Opn->Fbk]: error with memory limit | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-46096@lists.php.net to get a copy of this message | ||
ID: 25127
Updated by: sniper@php.net
Reported By: henrik dot gebauer at web dot de
-Status: Open
+Status: Feedback
Bug Type: *General Issues
Operating System: Mandrake 9.1
PHP Version: 5.0.0b1 (beta1)
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2003-08-18 08:44:52] henrik dot gebauer at web dot de
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 this bug report at http://bugs.php.net/?id=25127&edit=1