|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-11-16 05:30 UTC] hholzgra@php.net
[2000-11-16 07:13 UTC] hholzgra@php.net
[2000-11-17 11:21 UTC] jmoore@php.net
[2000-11-18 09:40 UTC] jmoore@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 18:00:01 2025 UTC |
The resource limits section of php.ini is being ignored. The ini file reads: memory_limit = 6M In a script it is possible to allocate well past this. I succeeded in allocating over 100MB. Sample: $str = ''; $total = 0; for ( $i = 0 ; $i < 65000 ; $i++ ) $str .= 'a'; for ( $i = 0 ; $i < 1024 ; $i++ ) { printf(' %d (%d)', $i, $total); $strbuff[$i] = "$i - $str"; flush(); $total += strlen($strbuff[$i]); } # This allocates ~ 64MB