Bug #13339 Updated: sscanf returns wrong result
| From: | derick@php.net | Date: | Mon, 17 Sep 2001 09:53:29 +0000 |
| Subject: | Bug #13339 Updated: sscanf returns wrong result | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-66100@lists.php.net to get a copy of this message | ||
ID: 13339
Updated by: derick
Reported By: dev@generalprotectionfault.de
Old Status: Open
Status: Closed
Bug Type: Variables related
Operating System: Windows NT 4.0
PHP Version: 4.0.6
New Comment:
This is not weird, PHP's int are signed integers. 0xac00000 is too large for that.
Derick
Previous Comments:
------------------------------------------------------------------------
[2001-09-17 05:50:38] dev@generalprotectionfault.de
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