From: [EMAIL PROTECTED]
Operating system: HP-UX 11i
PHP version: 4.1.1
PHP Bug Type: Unknown/Other Function
Bug description: file upload - empty $userfile
With sample page :
<form enctype="multipart/form-data" action="<?php echo $PHP_SELF; ?>"
method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="100000">
Send this file: <input name="userfile" type="file"><BR>
<input type="submit" value="Send File">
</form></CENTER>
<HR>
<?php
echo "Field : " . $userfile ."<BR>";
echo "File : " . $_FILES[userfile][name] ."<BR>";
echo "Type : " . $_FILES[userfile][type] ."<BR>";
echo "Temp : " . $_FILES[userfile][tmp_name] ."<BR>";
echo "Size : " . $_FILES[userfile][size] ."<BR>";
if (is_uploaded_file($_FILES[userfile][tmp_name]))
echo "Download : Ok<BR>";
else echo "Download : KO<BR>";
}
On RedHat 7.2 (PHP 4.1.1, Apache 1.3.23) no problem,
$userfile=none or path to /tmp/xxxxx
On HP-UX 11i (PHP 4.0.6, Apache 1.3.19 build by HP) no problem.
On HP-UX 11i (PHP 4.1.1, Apache 1.3.23 build from source) $userfile and
other variables are empty.
(It's work one time on many)
Compile flags :
./configure --with-oci8 --with-apache=../apache_1.3.23
--with-gd=/opt/gd --with-pdflib=/opt/pdflib
--with-jpeg-dir=/opt/jpeg-6 --with-png-dir=/opt/libpng
--with-tiff-dir=/opt/tiff-3.5 --with-zlib-dir=/opt/zlib
--enable-sigchild --with-mysql=/opt/mysql
--enable-sockets --with-tsrm-pthreads
Thank's for your help.
--
Edit bug report at http://bugs.php.net/?id=15715&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=15715&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=15715&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=15715&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=15715&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15715&r=support
Expected behavior: http://bugs.php.net/fix.php?id=15715&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=15715&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=15715&r=submittedtwice