Andrew Lindeman writes: > OK, I think I made it a little more clear. Commited to CVS.
Actually, it was worded like that because it that function will not properly check for uploaded files in versions of PHP after 4.0.2, regardless of what it's called. For instance, if the internal is_uploaded_file() is disabled: the example function will run, but not work. That's because it depends on the old way of naming uploaded temp files, which used tmpnam(); at the time that is_uploaded_file() was added, uploading was changed so that the temp files are named using mkstemp(). The wording probably needs fixing to explain this, so people don't think that the function will work if renamed. Torben > On Saturday 09 March 2002 11:59 am, Sander Roobol wrote: > > On 2002.03.09 18:33 Andrew Lindeman wrote: > > > Should I change the docs or is that correct? See the note below > > > > That note is about the example. That script won't work on PHP after > > 4.0.2 because is_uploaded_file() is already defined. > > The note is correct, but it should be more clear that it's about the > > script below and not about is_uploaded_file(). > > > > Sander > > > > > --Andrew > > > > > > ---------- Forwarded Message ---------- > > > > > > Subject: [PHP-NOTES] note 19739 added to function.is-uploaded-file > > > Date: 9 Mar 2002 06:24:32 -0000 > > > From: [EMAIL PROTECTED] > > > To: [EMAIL PROTECTED] > > > > > > "Note: This will not work in versions of PHP 4 after 4.0.2. It depends > > > on > > > internal functionality of PHP which changed after that version." > > > > > > I believe this should read "before 4.0.2". > > > -- > > > http://www.php.net/manual/en/function.is-uploaded-file.php > > > http://master.php.net/manage/user-notes.php?action=edit+19739 > > > http://master.php.net/manage/user-notes.php?action=delete+19739 > > > http://master.php.net/manage/user-notes.php?action=reject+19739 > > > > > > > > > -- > > > PHP Notes Mailing List (http://www.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > ------------------------------------------------------- > > > > > > -- > > > There are no threads in a.b.p.erotica, so there's no gain in using a > > > threaded news reader. > > > (Unknown source) > > -- > Disclaimer: "These opinions are my own, though for a small fee they be > yours too." > -- Dave Haynie > -- Torben Wilson <[EMAIL PROTECTED]> http://www.thebuttlesschaps.com http://www.hybrid17.com http://www.inflatableeye.com +1.604.709.0506