Pyh.conf’25: a new PHP conference for the Russian-speaking community

Voting

: five minus three?
(Example: nine)

The Note You're Voting On

Anonymous
19 years ago
Using (cmask - umask) is a wrong way to calculate the new mask:

0022 - 0700 = 0656 WRONG
0700 & ~0022 = 0700 CORRECT

Correct php code:
<?php
$rmask
= ($cmask & ~$umask);
?>

<< Back to user notes page

To Top