From:             xuefer at 21cn dot com
Operating system: all
PHP version:      4.3.3
PHP Bug Type:     Feature/Change Request
Bug description:  rename/copy/fopen should be able to handle uploaded

Description:
------------
i'd suggest, when we open file, if it's not in open_basedir, check if it
is_uploaded_file(), if yes, let's open it

the way we can only do is to use is_uploaded_file() and
move_uploaded_file(), we can't even do file_size(), which is troublesome.
and we have to prepair a writable directory within open_basedir, move in
the file, fopen() and fread()

but i don't see any good point, when we're using super safe $_FILE;

if $_FILES['userfile']['tmp_name'] is "uploaded://xFkcg.tmp", maybe nice
for php4.3+


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

Reply via email to