note 103504 added to errorfunc.constants
| From: | (couk) | Date: | Sat, 16 Apr 2011 11:15:20 +0000 |
| Subject: | note 103504 added to errorfunc.constants | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-178911@lists.php.net to get a copy of this message | ||
-1 is also semantically meaningless as a bit field, and only works in 2s-complement numeric
representations. On a 1s-complement system -1 would not set E_ERROR. On a sign-magnitude system -1
would set nothing at all! (see e.g. http://en.wikipedia.org/wiki/Ones%27_complement)
If you want to set all bits, ~0 is the correct way to do it.
But setting undefined bits could result in undefined behaviour and that means *absolutely anything*
could happen :-)
----
Server IP: 109.169.40.147
Probable Submitter: 188.220.56.250
----
Manual Page -- http://www.php.net/manual/en/errorfunc.constants.php
Edit -- https://master.php.net/note/edit/103504
Del: integrated -- https://master.php.net/note/delete/103504/integrated
Del: useless -- https://master.php.net/note/delete/103504/useless
Del: bad code -- https://master.php.net/note/delete/103504/bad+code
Del: spam -- https://master.php.net/note/delete/103504/spam
Del: non-english -- https://master.php.net/note/delete/103504/non-english
Del: in docs -- https://master.php.net/note/delete/103504/in+docs
Del: other reasons-- https://master.php.net/note/delete/103504
Reject -- https://master.php.net/note/reject/103504
Search -- https://master.php.net/manage/user-notes.php