Bug #42291 [Com]: Uploaded file permissions vary depending on file system configuration
| From: | upadrian at gmail dot com | Date: | Thu, 03 Mar 2016 11:38:12 +0000 |
| Subject: | Bug #42291 [Com]: Uploaded file permissions vary depending on file system configuration | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-199578@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=42291&edit=1
ID: 42291
Comment by: upadrian at gmail dot com
Reported by: rob-phpbugs at tigertech dot com
Summary: Uploaded file permissions vary depending on file
system configuration
Status: No Feedback
Type: Bug
Package: Filesystem function related
Operating System: Linux
PHP Version: 5.2.4
Block user comment: N
Private report: N
New Comment:
Same problem here on 5.5.31
Previous Comments:
------------------------------------------------------------------------
[2008-06-10 15:48:17] mail at peter-thomassen dot de
I just checked this with today's snapshot (5.2.7 devel), and move_uploaded_file() now respects
the umask setting.
For the temporary file (before the move_uploaded_file() call, usually in /tmp/), the umask setting
is respected only for the owner's bits. Group and world permission are set to 0 (as if umask
was 0x77, with x being the owner's umask). As I already said, everything is set right when
moving the file away. It seems that this bug is fixed.
In production, I still have to use PHP 5.2.0 with some patches. Does anybody know in which version
this bug was fixed?
------------------------------------------------------------------------
[2007-11-26 01:00:00] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2007-11-18 23:47:28] jani@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.2-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.2-win32-installer-latest.msi
------------------------------------------------------------------------
[2007-11-05 23:28:25] rob-phpbugs at tigertech dot com
I fear this bug could be ignored because I tagged it as happening on
PHP 4. Just to make sure it's clear, I'm retagging it as happening
in PHP 5.2.4 -- it affects all versions.
------------------------------------------------------------------------
[2007-11-04 17:16:19] marcel dot wiechmann at gmail dot com
Same problem here. But not only under php 4.4.7 also under php 5.2.4
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=42291
--
Edit this bug report at https://bugs.php.net/bug.php?id=42291&edit=1