move_uploaded_file does not set right permissions (ignores umask)
Bug #294148 reported by
Hark
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php |
Unknown
|
Unknown
|
|||
php5 (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
Binary package hint: php5
After calling move_uploaded_file a file should get permissions according to the set umask. When /tmp is on the same partition as the file's destination this doesn't happen, the file gets mode 600 making it unreadable by Apache.
I think this bug was introduced in an upgrade a few weeks maybe months ago.
This does remind me very much of an old (resolved) bug in PHP: http://
Changed in php5 (Ubuntu): | |
importance: | Undecided → Low |
To post a comment you must log in.
What versions of Ubuntu and PHP are involved?
Would it be possible to provide some example code where you use move_uploaded_file? Was a while ago since I wrote PHP code myself :)