ERROR: Uploading big dimension png, with few kb

Project:ProjectPier
Version:0.8.5.0-Beta1
Component:Code
Category:bug report
Priority:critical
Assigned:phpfreak
Status:closed - fixed
Description

WHERE I TEST (fresh version without nothing more)
- PP 0.8.0.3, PP 0.8.5.0-beta1
- MAMP on OS x (PHP Version 5.2.11, MySQL 5.1.37, Apache/2.0.63 (Unix) PHP/5.2.11 DAV/2)

HOW TO RECREATE BUG:
- create a new project
- add 2000x1606_FCS3.png (simple empty png made with fireworks CS3, 180kb)

After upload a white page with the name of file appears, back to PP and show file of project doesn't run (need to delete the entire project, or manually delete all entries about the new file uploaded on MySql, delete the folder on upload folder and change attributes.php on upload folder)

In attach 2 files
2000x1606_FCS3.png, 2000x1605_FCS3.png with 2000x1605_FSC3.png it's all ok
suggest: I think something depends maybe on 'dimension' and limit on upload, 2000x1605 = 3210000 ...

AttachmentSize
FCS3_pngs.zip66.5 KB
#1
Title:Upload big dimension png, with few kb» ERROR: Uploading big dimension png, with few kb
Version:0.8.0.3» 0.8.5.0-Beta1

No one have tested yet?

#2
Status:new» closed - not reproducible

Using PHP 5.3.0, Apple Supplied for Snow Leopard, Mysql 5.1.42 and current trunk code.

Both images are uploaded correctly without issues.

#3
Version:0.8.5.0-Beta1» 0.8.0.3
Status:closed - not reproducible» patch - code needs work

Same Bug here.

#4
Version:0.8.0.3» 0.8.5.0-Beta1
Assigned to:Visitor» phpfreak
Status:patch - code needs work» closed - fixed

Depends on memory size of the server. Problem recognized. Fixed in 0.8.6