From: df at nn dot ru
Operating system: Debian GNU/Linux (2.4.19)
PHP version: 4CVS-2003-05-28 (stable)
PHP Bug Type: Unknown/Other Function
Bug description: strange handling of file uploading
Small form
<form method=POST enctype=multipart/form-data>
<input type=file name=Params[5]>
<input type=text name=Params[6] value='some text'>
</form>
and php code
<?
print "<pre>";
print_r($Params);
print_r($Params_name);
print "</pre>";
?>
---------------------------
When I try to call print_r($Params), it returns:
Array
(
[5] => some text
)
instead what I expect:
Array
(
[5] => /tmp/php....
[6] => some text
)
And print_r($Params_name) returns:
Array
(
[6] => filename
)
But, if will replace file field and text, everything works
fine.
-------------------
I'm using Apache 1.3.27
And here is my configure options:
'../configure' '--prefix=/usr' '--with-apxs=/usr/bin/apxs'
'--with-regex=php'
'--with-config-file-path=/etc/php4/apache'
'--disable-rpath' '--disable-debug'
'--enable-memory-limit' '--with-layout=GNU'
'--enable-calendar' '--enable-sysvsem' '--enable-sysvshm'
'--enable-track-vars' '--enable-trans-sid'
'--enable-bcmath' '--with-bz2' '--enable-ctype'
'--with-db2' '--with-iconv' '--enable-exif'
'--enable-filepro' '--enable-ftp' '--with-gettext'
'--enable-mbstring' '--with-pcre-regex=/usr'
'--enable-shmop' '--enable-sockets' '--enable-wddx'
'--enable-sigchild' '--enable-xml' '--with-expat-dir=/usr'
'--enable-yp' '--with-zlib' '--without-pgsql'
'--with-exec-dir=/usr/lib/php4/libexec'
'--with-pear=/usr/share/pear' '--disable-static'
'--with-curl=shared,/usr' '--with-dom=shared,/usr'
'--with-zlib-dir=/usr' '--with-gd=shared,/usr'
'--with-jpeg-dir=shared,/usr'
'--with-xpm-dir=shared,/usr/X11R6'
'--with-png-dir=shared,/usr'
'--with-freetype-dir=shared,/usr'
'--with-imap=shared,/usr' '--with-kerberos=/usr'
'--with-ldap=shared,/usr' '--with-mcal=shared,/usr'
'--with-mhash=shared,/usr' '--with-mm'
'--with-mysql=shared,/usr' '--with-unixODBC=shared,/usr'
'--with-recode=shared,/usr' '--enable-xslt=shared'
'--with-xslt-sablot=shared,/usr' '--with-snmp=shared'
'--with-sybase-ct=shared,/usr' '--with-ttf=shared,/usr'
'--with-t1lib=shared,/usr'
PS: I noticed the same problem in a 4.3.1
--
Edit bug report at http://bugs.php.net/?id=23855&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23855&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23855&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23855&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23855&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23855&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23855&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23855&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23855&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23855&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23855&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23855&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23855&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23855&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23855&r=gnused