<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.bebot.link/index.php?action=history&amp;feed=atom&amp;title=Userid_handling</id>
	<title>Userid handling - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.bebot.link/index.php?action=history&amp;feed=atom&amp;title=Userid_handling"/>
	<link rel="alternate" type="text/html" href="http://wiki.bebot.link/index.php?title=Userid_handling&amp;action=history"/>
	<updated>2026-05-25T22:32:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>http://wiki.bebot.link/index.php?title=Userid_handling&amp;diff=84&amp;oldid=prev</id>
		<title>B3b0tUzR: Created page with &#039;In previous series of BeBot UserID&#039;s have been treated as integer values. This has been due to the fact that unlike most other operations in PHP, unpack() does NOT automatically …&#039;</title>
		<link rel="alternate" type="text/html" href="http://wiki.bebot.link/index.php?title=Userid_handling&amp;diff=84&amp;oldid=prev"/>
		<updated>2020-09-16T22:37:13Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;In previous series of BeBot UserID&amp;#039;s have been treated as integer values. This has been due to the fact that unlike most other operations in PHP, unpack() does NOT automatically …&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In previous series of BeBot UserID&amp;#039;s have been treated as integer values. This has been due to the fact that unlike most other operations in PHP, unpack() does NOT automatically convert numeric values greater than a 32bit integer can handle to a float. As such BeBot allowed the integer to overflow to become a negative signed integer.&lt;br /&gt;
&lt;br /&gt;
As of BeBot 0.7.0 this is no longer true. We now handle high UserID&amp;#039;s as floats, and as such this means special care have to be taken whenever comparing UserID&amp;#039;s.&lt;br /&gt;
&lt;br /&gt;
Do NOT compare UserID&amp;#039;s the way you would a normal integer, ie &lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
if ($userid == $userid2)&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Instead use the bc_cmp function, ie &lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
if (bccomp($userid, $userid2) == 0)&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
bccomp return values are&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
Returns 0 if the two operands are equal, 1 if the left_operand  is larger than the right_operand , -1 otherwise. &lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>B3b0tUzR</name></author>
	</entry>
</feed>