From: [EMAIL PROTECTED]
Operating system: Windows 2000 SP3
PHP version: 4.2.3
PHP Bug Type: IIS related
Bug description: HTTP File upload
I'm not sure if this relates only to IIS -
I upgraded to 4.2.1 and fileupload didn't work at all so then I used
4.2.3. It's better but still file upload seems buggy. The simplest test I
could create is the script below, which generates an endless number of
php$HEXNUMBERINC.tmp in the upload temp directory. Each file is about
4.999 KB in size. The only way I could find to stop it is to stop IIS.
Thanks,
Mike
+++++++++++++++++++++++++++++++
// filename: test.php
<?php
global $HTTP_POST_VARS;
if(isset($HTTP_POST_FILES['fileName'])){
echo("POSTED ".$HTTP_POST_FILES['fileName']['tmp_name']."<br/>");
}
echo('
<html>
<head>
</head>
<body>
<form enctype="multipart/form-data" name="form1" action="test.php"
method="post">
File<input type="file" name="fileName" value="fred" />
<input border="0" type="submit" name="subBut" value="upload" />
</form>
</body>
</html>');
?>
+++++++++++++++++++++++++++++++++++++++++++++++
--
Edit bug report at http://bugs.php.net/?id=20174&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20174&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=20174&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=20174&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20174&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=20174&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=20174&r=support
Expected behavior: http://bugs.php.net/fix.php?id=20174&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=20174&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=20174&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=20174&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20174&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=20174&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=20174&r=isapi