ID: 13339 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Closed Status: Open Bug Type: Variables related Operating System: Windows NT 4.0 PHP Version: 4.0.6 New Comment: Please use the Web system for answerring. User update: You said php4 uses signed integers, so please explain that: // - - - - - - - - - - - - - - - - - - list($x) = sscanf( 'ffffffff', '%x' ); printf("%x<br>",$x); $x = pow(2,32)-1; echo $x , "<br>"; $y = ( $x >> 16 ) & 0xFFFF ; $x &= 0xFFFF; printf("%x%x<br>",$y,$x); // - - - - - - - - - - - - - - - - - - Result: 7fffffff 4294967295 ffffffff Previous Comments: ------------------------------------------------------------------------ [2001-09-17 05:53:29] [EMAIL PROTECTED] This is not weird, PHP's int are signed integers. 0xac00000 is too large for that. Derick ------------------------------------------------------------------------ [2001-09-17 05:50:38] [EMAIL PROTECTED] I've tried this: list($x) = sscanf( 'ac100000', '%x' ); printf("%x",$x); And I got "7fffffff", weird. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=13339&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]