Task #258
zula_byte_value() needs to be called on ini_get('memory_limit') in Image.php
| Status: | Closed | Start date: | 2010-04-01 | |
|---|---|---|---|---|
| Priority: | Undecided | Due date: | ||
| Assignee: | Alex Cartwright | % Done: | 100% |
|
| Category: | - | |||
| Target version: | 2.6.0 | |||
| PHP Version: |
Description
2.5.0
application/libraries/Image.php:38
if ( (memory_get_usage() + $memoryNeeded) > ini_get('memory_limit') * pow( 1024, 2 ) ) {
Will not work as expected when the PHP memory_limit directive does not use short hand notation (e.g. 5242880, not '5M')
A solution could be:
if ( (memory_get_usage() + $memoryNeeded) > zula_byte_value( ini_get('memory_limit') ) ) {
History
Updated by Alex Cartwright over 1 year ago
- Tracker changed from Bug to Task
- Status changed from New to In progress
- Assignee set to Alex Cartwright
Updated by Alex Cartwright over 1 year ago
- Status changed from In progress to Closed
- % Done changed from 0 to 100
Applied in changeset commit:"cb46b23da5e00b0a4854d3937689095d62324a5a".