ZF-4543: Size / FilesSize Validators with maxsize > 2gb
Description
When setting max size to 2gb or greater generates the following problem:
2gb: 'Zend_Validate_Exception' with message 'The maximum must be greater than or equal to the minimum filesize, but -2147483648 < 1024' Zend_Validate_File_Size->setMax('2GB') #1
3gb: 'The maximum must be greater than or equal to the minimum filesize, but -1073741824 < 1024' Zend_Validate_File_Size->setMax('3GB') #1
4gb: The maximum must be greater than or equal to the minimum filesize, but 0 < 1024' Zend_Validate_File_Size->setMax('4GB') #1
It you specify 5gb the _max property is set to 1gb, if 6gb then its 2gb and repeats the previous behavior. Doesn't matter if you specif bytes instead of using "short notation".
Comments
Posted by Beau Hastings (hastinbe) on 2008-10-10T08:23:42.000+0000
You can close/disregard this report. Coworker gave me mixed 1.5 & 1.6 files -.-
Posted by Thomas Weidner (thomas) on 2008-10-10T08:24:28.000+0000
As mentioned in the manual PHP is not able to support more than 4GB on a 32bit machine. Depending on the used processor and OS the actual supported size can differ from 2GB up do 16GB.