php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #31000 Error Values for File Uploads not documented
Submitted: 2004-12-06 17:57 UTC Modified: 2004-12-06 18:33 UTC
From: matt at mooseit dot biz Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2004-12-06 17:57 UTC] matt at mooseit dot biz
Description:
------------
When uploading an empty file using PHP 5, it sets the value of the error to 5. The page in the manual that tells you what these error values correspond to doesn't reference the value 5 at all (http://php.net/manual/en/features.file-upload.errors.php). I expected it to say 5, with the corresponding constant definition, and an explanation of the error.

Cheers


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-06 18:26 UTC] nlopess@php.net
Thats not true. PHP 5 uses the same constant as PHP 4 (UPLOAD_ERR_NO_FILE), which has the value 4.

However UPLOAD_ERR_NO_TMP_DIR is missing in the docs. I'll document it.
 [2004-12-06 18:33 UTC] nlopess@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

added UPLOAD_ERR_NO_TMP_DIR.
 [2020-02-07 06:11 UTC] phpdocbot@php.net
Automatic comment on behalf of nlopess
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=4a6f5311ad36dbfaa49d12376b0ed3d3bb9febd9
Log: fix #31000: adding UPLOAD_ERR_NO_TMP_DIR
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 18 19:01:28 2024 UTC