|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-06-17 03:41 UTC] joe at estara dot com
[2006-06-17 04:05 UTC] joe at estara dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 22:00:01 2025 UTC |
Description: ------------ Using php 5.1.4, --enable-memory-limit appears to have no effect. e.g. php -i: shows I have it set: memory_limit => 1M => 1M Configure shows it's in there Configure Command => './configure' ... '--enable-memory-limit' Here's the whole thing: Configure Command => './configure' '--prefix=/prod/apache/php' '--with-apxs2=/p rod/apache/bin/apxs' '--with-openssl' '--with-mysql=/prod/mysql' '--with-zlib' ' --without-pear' '--with-gd' '--with-ttf' '--enable-gd-native-ttf' '--with-freety pe-dir=/usr' '--with-mcrypt' '--with-imagick=shared' '--with-pfpro=shared,/prod/ pfpro/' '--enable-sockets' '--with-curl' '--enable-mbstring=all' '--without-sqli te' '--without-pdo-sqlite' '--with-jpeg-dir=/usr/' '--with-png-dir=/usr/' '--wit h-libdir=lib64' '--enable-memory-limit' '--enable-sysvshm' Reproduce code: --------------- <?php for($i=0;$i<400; $i++) ${'test' . $i} = file_get_contents("/etc/termcap"); ?> Expected result: ---------------- I'd expect it to hit my 1M limit and error out. Actual result: -------------- It uses all available ram on the machine and dies.