From:             tycje at hotmail dot com
Operating system: Irrelevant
PHP version:      Irrelevant
PHP Bug Type:     Documentation problem
Bug description:  Upload example 18-2 confusing about version needed for 
is_uploaded_file()

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.


-- 
Edit bug report at http://bugs.php.net/?id=24896&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24896&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24896&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=24896&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24896&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24896&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24896&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24896&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24896&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24896&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24896&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24896&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24896&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24896&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24896&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24896&r=gnused


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to