#36630 [Opn->Csd]: umask is not being restored when each request is finished.
| From: | iliaa@php.net | Date: | Mon, 06 Mar 2006 14:28:15 +0000 |
| Subject: | #36630 [Opn->Csd]: umask is not being restored when each request is finished. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-93968@lists.php.net to get a copy of this message | ||
ID: 36630
Updated by: iliaa@php.net
Reported By: sorin at intersol dot ro
-Status: Open
+Status: Closed
Bug Type: Filesystem function related
Operating System: Fedora Core 4
PHP Version: 5.1.2
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2006-03-06 15:08:40] sorin at intersol dot ro
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...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36630&edit=1