[PHP-DEV] PHP 4.0 Bug #8758: Lots of zero-sized files remain in directory for tmp files uploaded via POST

2001-01-17 Thread kappa

From: [EMAIL PROTECTED]
Operating system: FreeBSD
PHP version:  4.0.4pl1
PHP Bug Type: Filesystem function related
Bug description:  Lots of zero-sized files remain in directory for tmp files uploaded 
via POST

I have a form with some type="file" fields for uploading images.
If a user really fills a field, then I can handle the file properly and it gets 
deleted from ./tmp dir on script
completion. But if a user leaves the field empty, php creates a zero-sized file in 
./tmp and does not
delete it. I even don't have to delete myself, because I get 'none' as filename inside 
my script.

After a month of heavy use, I have a REALLY huge ./tmp directory full of zero-sized 
files named like
phpsC7799 (example).

That bothers me.


-- 
Edit Bug report at: http://bugs.php.net/?id=8758edit=1



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] PHP 4.0 Bug #8758: Lots of zero-sized files remain in directory for tmp files uploaded via POST

2001-01-17 Thread Alex Kapranoff

On Wed, Jan 17, 2001 at 03:48:58PM +0200, Jani Taskinen wrote:
 On 17 Jan 2001 [EMAIL PROTECTED] wrote:
 
 From: [EMAIL PROTECTED]
 Operating system: FreeBSD
 PHP version:  4.0.4pl1
 PHP Bug Type: Filesystem function related
 Bug description:  Lots of zero-sized files remain in directory for tmp files 
uploaded via POST
 
 I have a form with some type="file" fields for uploading images.
 If a user really fills a field, then I can handle the file properly and it gets 
deleted from ./tmp dir on script
 completion. But if a user leaves the field empty, php creates a zero-sized file in 
./tmp and does not
 delete it. I even don't have to delete myself, because I get 'none' as filename 
inside my script.
 
 After a month of heavy use, I have a REALLY huge ./tmp directory full of zero-sized 
files named like
 phpsC7799 (example).
 
 Are you REALLY using 4.0.4pl1 ??? As this should be fixed.

  Uhm, that my fault. This is 4.0.3. I confirm that the bug is fixed
in 4.0.4pl1. I've just closed the bug-report. Thanks anyway.

-- 
Alex Kapranoff,
+7(0832)791845

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]