php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #31317 Getting error code '6' on file upload which is undocumented.
Submitted: 2004-12-28 09:00 UTC Modified: 2004-12-28 09:58 UTC
From: mail at iaindooley dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 4.3.10 OS: FreeBSD 4.10
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mail at iaindooley dot com
New email:
PHP Version: OS:

 

 [2004-12-28 09:00 UTC] mail at iaindooley dot com
Description:
------------
hello, i'm uploading files through a form and things have been working fine in the past, but recently i have begun to get the error code '6', which is undocumented in the PHP manual.

Array
(
    [name] => Brigitte-Normal.pfa /*small font file*/
    [type] => 
    [tmp_name] => 
    [error] => 6
    [size] => 0
)

Reproduce code:
---------------
the above output is being produced by this code:

die(print_r($file));

where $file is an element of the superglobal $_FILES obtained with:

foreach($_FILES as $label => $file)
{
    /*... FILE HANDLING CODE ...*/
}

Expected result:
----------------
The expected result would obviously be one of the documented error codes (0 - 4)

Actual result:
--------------
The actual result is an error code '6', which is undocumented.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-28 09:08 UTC] mail at iaindooley dot com
Just updating the version and OS information.
 [2004-12-28 09:13 UTC] vrana@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

Same as 31000.
 [2004-12-28 09:51 UTC] mail at iaindooley dot com
The solution to bug 31000 says that UPLOAD_ERR_NO_TMP_DIR was added to document on December 6th. I still can't see it in the docs, but nonetheless, bug 31000 is about error code number 5 in PHP5, not error code number 6 in PHP4.
 [2004-12-28 09:58 UTC] vrana@php.net
UPLOAD_ERR_NO_TMP_DIR == 6. It's documented only in XML sources so far, you have to wait until the next manual build as written in 31000.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 03:01:32 2024 UTC