php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44350 Problem 10GB
Submitted: 2008-03-06 16:07 UTC Modified: 2008-03-08 11:55 UTC
From: markers at mail333 dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.2.5 OS: Win XP && Win 2k3
Private report: No CVE-ID:
 [2008-03-06 16:07 UTC] markers at mail333 dot com
Description:
------------
ENGLISH:
php.ini
; Maximum allowed size for uploaded files.
upload_max_filesize = 10G
Result: -xxxxxxxxx

 <input type="hidden" name="MAX_FILE_SIZE" value="10000000000">

Uploading file size 2mb
Result: $_FILES["upload_file"]['error'] = 2 (The file is bigger than this form allows)

RUSSIAN:
&#1050;&#1086;&#1075;&#1076;&#1072; &#1079;&#1072;&#1076;&#1072;&#1105;&#1084; &#1084;&#1072;&#1082;&#1089;&#1080;&#1084;&#1072;&#1083;&#1100;&#1085;&#1099;&#1081; &#1088;&#1072;&#1079;&#1084;&#1077;&#1088; &#1092;&#1072;&#1081;&#1083;&#1072; &#1074; php.ini 10 &#1075;&#1080;&#1075;&#1072;&#1073;&#1072;&#1081;&#1090;:
"; Maximum allowed size for uploaded files.
upload_max_filesize = 10G"
&#1080;/&#1080;&#1083;&#1080; &#1089;&#1090;&#1072;&#1074;&#1080;&#1084; &#1086;&#1075;&#1088;&#1072;&#1085;&#1080;&#1095;&#1077;&#1085;&#1080;&#1077; &#1085;&#1072; &#1088;&#1072;&#1079;&#1084;&#1077;&#1088; &#1092;&#1072;&#1081;&#1083;&#1072; &#1080;&#1089;&#1087;&#1086;&#1083;&#1100;&#1079;&#1091;&#1103; &#1087;&#1086;&#1083;&#1077; MAX_FILE_SIZE:
" <input type="hidden" name="MAX_FILE_SIZE" value="10000000000">"
PHP &#1074;&#1086;&#1079;&#1074;&#1088;&#1072;&#1097;&#1072;&#1077;&#1090; &#1086;&#1096;&#1080;&#1073;&#1082;&#1091; ($_FILES["upload_file"]['error']) &#1088;&#1072;&#1074;&#1085;&#1099;&#1084; 2 (&#1056;&#1072;&#1079;&#1084;&#1077;&#1088; &#1092;&#1072;&#1081;&#1083;&#1072; &#1073;&#1086;&#1083;&#1100;&#1096;&#1077; &#1086;&#1075;&#1088;&#1072;&#1085;&#1080;&#1095;&#1077;&#1085;&#1080;&#1103; &#1092;&#1086;&#1088;&#1084;&#1099;)
&#1042;&#1086;&#1079;&#1084;&#1086;&#1078;&#1085;&#1086; &#1083;&#1080; &#1088;&#1077;&#1096;&#1077;&#1085;&#1080;&#1077;?




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-08 11:55 UTC] johannes@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

10G gives you an integer overflow on 32bit systems. Use 2GB as maximum or a 64bit machine.
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Sun Apr 20 10:02:06 2014 UTC