|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchespatch-main_open_temporary_file (last revision 2013-01-11 20:06 UTC by web at bartwell dot ru)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-01-11 20:08 UTC] web at bartwell dot ru
[2021-09-09 13:44 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: cmb
[2021-09-09 13:44 UTC] cmb@php.net
[2021-09-19 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 07:00:01 2025 UTC |
Description: ------------ I have server with FreeBSD 8.0, Apache 2.2.23 and PHP 5.4.10. That is my VirtualHost config: <VirtualHost *> ServerName site.com ServerAlias www.site.com DocumentRoot /usr/home/site/pub/htdocs/ php_admin_value open_basedir /usr/home/site/ php_admin_value session.save_path 0;0660;/usr/home/site/pub/tmp/ php_admin_value upload_tmp_dir /usr/home/site/pub/tmp/ </VirtualHost> /usr/home/site/pub/tmp/ owned by site:www with 4770 permission. Session files creating correctly (660 and site:www). But uploaded temporary files creating with 600 in permissions. So, because this temporary file owned by site:www and Apache running from www:www, move_uploaded_file() cannot move file. How to fix it? I think that I need patch PHP for force set permission on this tmp file. But where? And which internal function in PHP can to do it? Expected result: ---------------- I want that the temporary file creating with 660 permissions (and site:www). Actual result: -------------- This temporary file creating with 600 permissions (and site:www).