|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-08-18 08:44 UTC] 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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 23 03:00:01 2025 UTC |
[jani@rh62 jani]$ php -dmemory_limit=9388608 -r 'imagecreatefromjpeg("p1010025.jpg");' Fatal error: Allowed memory size of 9388608 bytes exhausted (tried to allocate 7936 bytes) in Command line code on line 1 /usr/src/web/php/php4_3/main/streams.c(392) : Stream of type 'STDIO' 0x085CAF2C (path:p1010025.jpg) was not closed