Date: 11/15/00
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #7820 Updated: xmlFreeURI not found"
- Previous message: Frank M. Kromann: "Re: [PHP-DEV] CVS Account Request"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: mail-php <email protected>
Operating system: Linux 2.2.15-4mdk
PHP version: 4.0.3pl1
PHP Bug Type: PHP options/info functions
Bug description: memory_limit ignored
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
-- Edit Bug report at: http://bugs.php.net/?id=7836&edit=1-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #7820 Updated: xmlFreeURI not found"
- Previous message: Frank M. Kromann: "Re: [PHP-DEV] CVS Account Request"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

