Issues

ZF-4543: Size / FilesSize Validators with maxsize > 2gb

Issue Type: Bug Created: 2008-10-10T08:06:28.000+0000 Last Updated: 2008-10-10T08:27:02.000+0000 Status: Resolved Fix version(s): - 1.6.1 (15/Sep/08)

Reporter: Beau Hastings (hastinbe) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate_File

Related issues: Attachments:

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.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts