note 85526 added to function.long2ip

From: Date: Thu, 04 Sep 2008 05:28:33 +0000
Subject: note 85526 added to function.long2ip
Groups: php.notes 
Request: Send a blank email to php-notes+get-144130@lists.php.net to get a copy of this message
Beware when processing values that are invalid, you may get values that are different based on the OS. For instance: $ip = long2ip(pow(2,32)+1024); On windows you get 255.255.255.255. On linux it's 0.0.4.0. So it seems it would be important to make sure the long you're converting is in the correct range. ---- Server IP: 69.147.83.197 Probable Submitter: 63.214.184.9 ---- Manual Page -- http://www.php.net/manual/en/function.long2ip.php Edit -- https://master.php.net/note/edit/85526 Del: integrated -- https://master.php.net/note/delete/85526/integrated Del: useless -- https://master.php.net/note/delete/85526/useless Del: bad code -- https://master.php.net/note/delete/85526/bad+code Del: spam -- https://master.php.net/note/delete/85526/spam Del: non-english -- https://master.php.net/note/delete/85526/non-english Del: in docs -- https://master.php.net/note/delete/85526/in+docs Del: other reasons-- https://master.php.net/note/delete/85526 Reject -- https://master.php.net/note/reject/85526 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#144130) next »