ID: 25127 User updated by: henrik dot gebauer at web dot de Reported By: henrik dot gebauer at web dot de -Status: Feedback +Status: Open Bug Type: GD related Operating System: Mandrake 9.1 PHP Version: 5 (latest CVS) New Comment:
My configure line: './configure' \ '--with-apxs2=/usr/local/apache2/bin/apxs' \ '--with-config-file-path=/etc' \ '--with-zlib' \ '--with-gd' \ '--with-mysql=/usr/src/mysql-4.0.14/include/' \ '--enable-sockets' \ '--enable-memory-limit' \ '--enable-trans-sid' \ '--with-jpeg-dir=/usr/src/jpeg-6b' \ '--with-png-dir=/usr/src/libpng' The error does not occur with images with a smaller file size. Try this picture to reproduce it: http://www.henrikgebauer.de.vu/bilder/klassenfahrt_kanu2003/p1010025.jpg Previous Comments: ------------------------------------------------------------------------ [2003-08-19 04:42:17] [EMAIL PROTECTED] What was the configure line you used to configure PHP? (config.nice) ------------------------------------------------------------------------ [2003-08-19 04:22:19] henrik dot gebauer at web dot de I get the same error using the latest CVS version. It seems to be luck if it works or not because after reloading the script a few times it works. ------------------------------------------------------------------------ [2003-08-18 09:18:55] [EMAIL PROTECTED] 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 ------------------------------------------------------------------------ [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
