note 83615 deleted from function.ip2long by cmb
| From: | cmb@php.net | Date: | Sun, 13 Oct 2019 07:50:07 +0000 |
| Subject: | note 83615 deleted from function.ip2long by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-212610@lists.php.net to get a copy of this message | ||
Note Submitter: herwin at snt dot utwente nl
----
The code examples explain why printing needs a casting, but beware that also calculations are
performed with signed integers. In my case, the result of (ip2long('130.89.0.1') >>
24) was supposed to be 130, but the actual result was -126