From:             chris at komodohost dot com
Operating system: RedHat Enterprise Linux 3
PHP version:      4.3.4
PHP Bug Type:     Apache related
Bug description:  Receiving 500 error when uploading file.

Description:
------------
Receiving Internal Server Error on any form posted which contains an
uploaded file. We are running PHP with PHPSuExec. File has correct
ownership and permissions. PHP was configured with:

'./configure' '--prefix=/usr' '--with-xml' '--enable-bcmath'
'--enable-calendar' '--with-curl' '--enable-ftp' '--with-gd'
'--with-jpeg-dir=/usr/local' '--with-png-dir=/usr'
'--with-xpm-dir=/usr/X11R6' '--with-mcrypt' '--with-mhash'
'--enable-magic-quotes' '--with-mysql' '--enable-discard-path'
'--with-pear' '--enable-sockets' '--enable-track-vars'
'--enable-versioning' '--with-zlib' 

Reproduce code:
---------------
<?php

// Sample available at: http://www.komodohost.com/uploadbug.php 

if ($_POST[file1]) {
  echo "Success!";
}

?>
<form enctype="multipart/form-data" method="POST">
  <input type="file" name="file1" size="48">
  <input type="submit" value="Continue">
</form>

Expected result:
----------------
Upon posting form, "Success!" should be displayed.

Actual result:
--------------
500 Internal Server Error

-- 
Edit bug report at http://bugs.php.net/?id=28362&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28362&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28362&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28362&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28362&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28362&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28362&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28362&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28362&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28362&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28362&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28362&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28362&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28362&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28362&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28362&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28362&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28362&r=float

Reply via email to