note 62680 added to function.intval

From: Date: Tue, 07 Mar 2006 07:48:05 +0000
Subject: note 62680 added to function.intval
Groups: php.notes 
Request: Send a blank email to php-notes+get-104963@lists.php.net to get a copy of this message
As addendum, the "if ($int > 0)" check in the encode function is redundant. It doesn't do anything bad to keep it in since it will always be true when reaching that point, but it's a meaningless conditional this way. It's a remnant from when I tried to write the function in terms of bitshifts, which could lead to negative ints when shifting if the 32nd bit was set (instead of always padding with 0's when using >> it pads with 1's leading to negative ints). ---- Server IP: 194.109.193.119 Probable Submitter: 80.61.35.236 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.intval.php Edit -- http://master.php.net/note/edit/62680 Del: integrated -- http://master.php.net/note/delete/62680/integrated Del: useless -- http://master.php.net/note/delete/62680/useless Del: bad code -- http://master.php.net/note/delete/62680/bad+code Del: spam -- http://master.php.net/note/delete/62680/spam Del: non-english -- http://master.php.net/note/delete/62680/non-english Del: in docs -- http://master.php.net/note/delete/62680/in+docs Del: other reasons-- http://master.php.net/note/delete/62680 Reject -- http://master.php.net/note/reject/62680 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#104963) next »