#33176 [NEW]: umask is not being restored when each request is finished
| From: | strovato at cdeducation dot org | Date: | Sun, 29 May 2005 01:34:23 +0000 |
| Subject: | #33176 [NEW]: umask is not being restored when each request is finished | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-79657@lists.php.net to get a copy of this message | ||
From: strovato at cdeducation dot org
Operating system: Solaris 10 SPARC
PHP version: 4.3.11
PHP Bug Type: iPlanet related
Bug description: umask is not being restored when each request is finished
Description:
------------
If the umask is set by a PHP script and not restored, the new umask
persists and is inherited by any scripts that follow.
This seems like the same bug as #28401, but under the Sun Java System Web
Server 6.1 instead of Apache. It is marked there as Wont fix. If it's
not fixable here, either, then perhaps the docs should be fixed, since
they state that "the umask is restored when each request is finished."
-S
Reproduce code:
---------------
<?PHP
echo umask();
umask(0111);
?>
Expected result:
----------------
Each time the script is run, it should echo the same number.
Actual result:
--------------
The new umask instead of the default will be echoed every time after the
first run.
--
Edit bug report at http://bugs.php.net/?id=33176&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33176&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33176&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33176&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33176&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33176&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33176&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33176&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33176&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33176&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33176&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=33176&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=33176&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33176&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33176&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33176&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33176&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33176&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33176&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33176&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33176&r=mysqlcfg