#23855 [Com]: strange handling of file uploading

From: Date: Wed, 28 May 2003 14:11:18 +0000
Subject: #23855 [Com]: strange handling of file uploading
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-40582@lists.php.net to get a copy of this message
ID: 23855 Comment by: covex at nn dot ru Reported By: df at nn dot ru Status: Bogus Bug Type: *General Issues Operating System: Debian GNU/Linux (2.4.19) PHP Version: 4CVS-2003-05-28 (stable) New Comment: When we changed the form: <form method=POST enctype=multipart/form-data> <input type=text name=Params[4] value='some text'> <input type=file name=Params[5]> <input type=text name=Params[6] value='some text'> </form> ... <? print_r($Params); ?> worked well Previous Comments: ------------------------------------------------------------------------ [2003-05-28 08:59:08] sniper@php.net Use the $_FILES array. ------------------------------------------------------------------------ [2003-05-28 08:56:40] df at nn dot ru 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 this bug report at http://bugs.php.net/?id=23855&edit=1

« previous php.bugs (#40582) next »