#25127 [Com]: error with memory limit

From: Date: Fri, 22 Aug 2003 18:13:11 +0000
Subject: #25127 [Com]: error with memory limit
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-46495@lists.php.net to get a copy of this message
ID: 25127 Comment by: scott at lenderlab dot com Reported By: henrik dot gebauer at web dot de Status: Assigned Bug Type: GD related Operating System: Mandrake 9.1 PHP Version: 4.3.3RC5-dev, 5.0.0b2-dev Assigned To: iliaa New Comment: Our company is developing a new network to handle the increase in files, and database queries. our existing server is running PHP 4.3.0 while our new server is running 4.3.2. We are having issue after issue with our new server in doing MySQL queries, wether its 30,000, 3000, or 300 records, it exceeds the memory limit. but when doing the same query on our old server it can return back 40,000 records no problem. the PHP configurations are the same and the version of MySQL is the same. Both are running Red Hat 9. any suggestions? could it be the PHP version? Previous Comments: ------------------------------------------------------------------------ [2003-08-22 10:46:09] mpaesold at gmx dot at The same problem exists in PHP 4.3.2. Regards, Michael ------------------------------------------------------------------------ [2003-08-19 07:06:58] sniper@php.net [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 ------------------------------------------------------------------------ [2003-08-19 06:25:00] henrik dot gebauer at web dot de 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 ------------------------------------------------------------------------ [2003-08-19 04:42:17] sniper@php.net 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. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/25127 -- Edit this bug report at http://bugs.php.net/?id=25127&edit=1

« previous php.bugs (#46495) next »