PHP 8.5.0 Alpha 1 available for testing

Voting

: one minus one?
(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