#34412 [NEW]: var_dump or is_int function report wrong datatype
| From: | bestmischmaker at web dot de | Date: | Wed, 07 Sep 2005 19:59:56 +0000 |
| Subject: | #34412 [NEW]: var_dump or is_int function report wrong datatype | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-84644@lists.php.net to get a copy of this message | ||
From: bestmischmaker at web dot de
Operating system: Windows 2000
PHP version: 4.4.0
PHP Bug Type: Variables related
Bug description: var_dump or is_int function report wrong datatype
Description:
------------
Hy...
if you run these few lines of code the is_int function say:
OK is an Interger
but var dump say it's an floatingpoint number....
Now is my question who of both says the right ???
regard
J°!(\)tý
Reproduce code:
---------------
<?php
$i = 2147000000;
set_time_limit(0);
while(is_int($i))
{
$i++;
}
var_dump(--$i);
var_dump(2);
?>
Expected result:
----------------
float(2147483647) int(2)
Actual result:
--------------
int(2147483647) int(2)
--
Edit bug report at http://bugs.php.net/?id=34412&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34412&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34412&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34412&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34412&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34412&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34412&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34412&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34412&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34412&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34412&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34412&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34412&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34412&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34412&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34412&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34412&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34412&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34412&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34412&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34412&r=mysqlcfg