From: [EMAIL PROTECTED] Operating system: Redhat 7.0 PHP version: 4.3.0RC2 PHP Bug Type: Reproducible crash Bug description: memory limit crash
I have a php installation with a memory limit set to 8MB. If I try to run this script <? for ($i=0; $i<=10000000; $i++) { $var.="a"; } echo "all is ok"; ?> I don't receive an error like "memory limit excedeed" (10MB > 8MB), simply the server kills the connection without any error on the screen or in the logs. Server configuration: Linux Redhat 7.0 Apache 1.3.22 PHP 4.3.0RC2 Zend Optimizer 2.0.3 Mysql 4.0.5 Configure: './configure' '--enable-track-vars' '--prefix=/usr' '--exec-prefix=/usr' '--libexecdir=/usr/lib/apache' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--datadir=/home/httpd' '--sysconfdir=/etc/httpd/conf' '--localstatedir=/var' '--libdir=/usr/lib/apache' '--includedir=/usr/include/apache' '--mandir=/usr/man' '--with-mysql=/usr' '--enable-memory-limit' '--with-config-file-path=/usr/local/Zend/etc' '--with-apxs' '--with-zlib' -- Edit bug report at http://bugs.php.net/?id=20802&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20802&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20802&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20802&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20802&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20802&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20802&r=support Expected behavior: http://bugs.php.net/fix.php?id=20802&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20802&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20802&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20802&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20802&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20802&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20802&r=isapi