php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1978 file upload broken in beta2?
Submitted: 1999-08-05 18:58 UTC Modified: 1999-08-06 13:10 UTC
From: roberts_chris at yahoo dot com Assigned:
Status: Closed Package: Other
PHP Version: 4.0b1 OS: Solaris 7 x86 & SPARC
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: roberts_chris at yahoo dot com
New email:
PHP Version: OS:

 

 [1999-08-05 18:58 UTC] roberts_chris at yahoo dot com
The following code will work on the 3.0.x series as well as 4.0b1 but NOT 4.0b2-1 or 4.0b2-2.(haven't tried cvs).  All configured identically.  The only variable that works is $userfile_size.

Sol7 x86:
egcs-1.1.2 and the latest GNU tools

Sol7 sparc:
gcc-2.8.1 and a mixture of SUN/GNU tools

<HTML>
<HEAD><TITLE>Upload Test</TITLE></HEAD>
<BODY>
<?
if ( !$action ) {
  echo "<form enctype=multipart/form-data action=".$PHP_SELF." method=POST>\n";
  echo "<input type=hidden name=MAX_FILE_SIZE value=500000000>\n";
  echo "Send this file: ";
  echo "<input name=userfile type=file>\n";
  echo "<input type=hidden name=action value=show_me_the_file>\n";
  echo "<input type=submit value=Send File>\n";
  echo "</form>\n";
} else {
  echo "<h2>Size: $userfile_size</h2>\n";
  echo "<h2>Type: $userfile_type</h2>\n";
  echo "<h2>Name: $userfile_name</h2>\n";
  echo "<h2>File: $userfile</h2>\n";
}
?>
</BODY>
</HTML>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-08-06 13:10 UTC] zeev at cvs dot php dot net
Fixed in the latest CVS
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 06:01:32 2025 UTC