Bug #13029 Updated: Crash when uploading file whose size is > 9 MB

From: Date: Wed, 29 Aug 2001 13:55:18 +0000
Subject: Bug #13029 Updated: Crash when uploading file whose size is > 9 MB
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-64615@lists.php.net to get a copy of this message
ID: 13029
User updated by: eugenio@pc.unicatt.it
Reported By: eugenio@pc.unicatt.it
Status: Open
Bug Type: HTTP related
Operating System: Windows 2000 professional
PHP Version: 4.0.4pl1
New Comment:

post_max_size is 180M

Previous Comments:
------------------------------------------------------------------------

[2001-08-29 09:53:30] eugenio@pc.unicatt.it

---
Are you sure the script isn't getting a timeout?
ie. try putting set_time_limit(0); in beginning of that
script. 
---

Yes, it isn't a timeout problem, I've tried both set_time_limit(0) and the same in
php.ini; the script crash immediately when I post the file.

I know that the file is stored in memory, but I set memory_limit = 80M so it should work. Why if the
size is > 9MB (with a file size of 8MB still works fine) the script crash?



------------------------------------------------------------------------

[2001-08-29 09:51:05] sniper@php.net

What is the post_max_size in your php.ini?


------------------------------------------------------------------------

[2001-08-29 09:49:39] eugenio@pc.unicatt.it

---
Are you sure the script isn't getting a timeout?
ie. try putting set_time_limit(0); in beginning of that
script. 
---

Yes, it isn't a timeout problem, I've tried both set_time_limit(0) and the same in
php.ini; the script crash immediately when I post the file.

I know that the file is stored in memory, but I set memory_limit = 80M so it should work. Why if the
size is > 9MB (with a file size of 8MB still works fine) the script crash?



------------------------------------------------------------------------

[2001-08-29 09:49:12] eugenio@pc.unicatt.it

---
Are you sure the script isn't getting a timeout?
ie. try putting set_time_limit(0); in beginning of that
script. 
---

Yes, it isn't a timeout problem, I've tried both set_time_limit(0) and the same in
php.ini; the script crash immediately when I post the file.

I know that the file is stored in memory, but I set memory_limit = 80M so it should work. Why if the
size is > 9MB (with a file size of 8MB still works fine) the script crash?



------------------------------------------------------------------------

[2001-08-29 09:37:44] sniper@php.net

Are you sure the script isn't getting a timeout?
ie. try putting set_time_limit(0); in beginning of that
script. 

Anyway, the HTTP upload code in PHP is not very suitable
for uploading very big files since it stores everything
in memory before writing it to disk.

(There already is another bug report open about that.)

--Jani


------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/?id=13029


Edit this bug report at http://bugs.php.net/?id=13029&edit=1



Thread (12 messages)

« previous php.dev (#64615) next »