Re: cvs: phpdoc /en/reference/filesystem/functions is-uploaded-file.xml

From: Date: Tue, 15 Feb 2005 15:09:45 +0000
Subject: Re: cvs: phpdoc /en/reference/filesystem/functions is-uploaded-file.xml
References: 1 2 3 4 5 6 7  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969366631@lists.php.net to get a copy of this message
Derick Rethans wrote:
is_uploaded_file is a register_globals artifact, and shouldn't need to be used with the $_FILES array.
? That is untrue. You should always use it.
How would $_FILES get populated with invalid data (that is_uploaded_file would catch)?
register_globals = 1 http://example.com/$_FILES['file']=foo
See: http://sean.caedmon.net/tests/files/index.php?_FILES[foo]=bar http://sean.caedmon.net/tests/files/index.phps http://sean.caedmon.net/tests/files/http_post_files.php?HTTP_POST_FILES[foo]=bar http://sean.caedmon.net/tests/files/http_post_files.phps (PHP 5) *shrug* it wouldn't hurt, but I persoanlly see no need for the recommendation. S

« previous php.doc (#969366631) next »