|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-03-06 15:28 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 07:00:01 2025 UTC |
Description: ------------ umask does not restore the initial umask on exit, affecting other processes running after umask on the same server (svn, other scripts) Same code works fine on the same system with php 5.0.4 Reproduce code: --------------- <?=echo sprintf("%04o",umask(0111));?> Expected result: ---------------- Always the same umask (default, probably 0022) Actual result: -------------- alternatively 0022 or 0111 until all threads ran the script at least once. Only 0111 after that...