php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #24896 Upload example 18-2 confusing about version needed for is_uploaded_file()
Submitted: 2003-07-31 17:20 UTC Modified: 2004-01-31 15:02 UTC
From: tycje at hotmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
 [2003-07-31 17:20 UTC] tycje at hotmail dot com
Description:
------------
On http://www.php.net/manual/en/features.file-upload.php there is an example 18-2, which mentions:

"// In PHP earlier then 4.0.3, use copy() and is_uploaded_file() instead of move_uploaded_file"

I find this quite confusing, because in the documentation of is_uploaded_file() at http://www.php.net/manual/en/function.is-uploaded-file.php it says:
"is_uploaded_file() is available only in versions of PHP 3 after PHP 3.0.16, and in versions of PHP 4 after 4.0.2."

So, for versions 4 earlier than 4.0.3, the example is wrong.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-31 06:26 UTC] nlopess@php.net
Everything is correct.
is_upload_file was introduced in PHP 4.0.3.
 [2004-01-31 07:27 UTC] tycje at hotmail dot com
Then why does the example advice you to use that function in PHP earlier than 4.0.3? After all, it's not available below 4.0.3! Please check it more thoroughly.
 [2004-01-31 15:02 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.

Sorry, I've missed that. I've removed that note.
 [2020-02-07 06:12 UTC] phpdocbot@php.net
Automatic comment on behalf of nlopess
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=60744c5cd85222ce79bda78e5e643d9d7e2f8c02
Log: fix #24896
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 16 00:01:30 2024 UTC