php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8660 multi fileupload - wrong index
Submitted: 2001-01-11 15:00 UTC Modified: 2002-09-30 18:41 UTC
From: mac at deam dot org Assigned:
Status: Not a bug Package: Misbehaving function
PHP Version: 3.0.17 OS: freebsd 4.1
Private report: No CVE-ID: None
 [2001-01-11 15:00 UTC] mac at deam dot org
attention: i am using 3.0.18!

if i make multi-fileuploads and leave one line blank in between the tmp-name will be at the index of the blank-line - anything else (original name, filesize) will be at the correct index.
this is a demooutput:

0: 159|kringel.gif|/var/tmp/phpC98581
1: 236|box_back.gif|/var/tmp/phpU98581
2: 0||/var/tmp/phpV98581
3: 107|lock.gif|

(index: filesize|name|temp-name)

any suggestions?



for information:
./configure '--with-apxs=/usr/local/sbin/apxs' '--enable-versioning' '--with-system-regex' '--with-config-file-path=/usr/local/etc' '--disable-debug' '--enable-track-vars' '--without-gd' '--with-gd=/usr/local' '--with-ttf=/usr/local' '--with-zlib' '--with-pdflib=/usr/local' '--with-jpeg-dir=/usr/local' '--with-tiff-dir=/usr/local' '--with-mysql=/usr/local' '--prefix=/usr/local' 'i386--freebsd4.1'

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-30 18:41 UTC] hholzgra@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.

the file upload code has been rewritten for php 4.2
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Oct 25 14:01:23 2020 UTC