#28708 [NEW]: move_uploaded_file to no Permission dir make php crash
| From: | xuefer at 21cn dot com | Date: | Wed, 09 Jun 2004 07:21:42 +0000 |
| Subject: | #28708 [NEW]: move_uploaded_file to no Permission dir make php crash | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-60614@lists.php.net to get a copy of this message | ||
From: xuefer at 21cn dot com
Operating system: linux
PHP version: 4.3.7
PHP Bug Type: Filesystem function related
Bug description: move_uploaded_file to no Permission dir make php crash
Description:
------------
move_uploaded_file to NO Permission dir get make crash
in shell: chmod 000 /path/to
in php: move_uploaded_file($_FILES['userfile']['tmp_name'],
'/path/to/file.jpg');
crash or show 2 error:
move_uploaded_file(/path/to/file.jpg): failed to open stream: Permission
denied
move_uploaded_file(): Unable to move 'pbZ@ËZ
' to '@ËZV,'
--
Edit bug report at http://bugs.php.net/?id=28708&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28708&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28708&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28708&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28708&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28708&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28708&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28708&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28708&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28708&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28708&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28708&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28708&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28708&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28708&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28708&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28708&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28708&r=float