php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35701 is_int(-2147483638) return false
Submitted: 2005-12-16 08:39 UTC Modified: 2005-12-16 10:22 UTC
From: samuelkid at citiz dot net Assigned:
Status: Not a bug Package: Variables related
PHP Version: 5.1.1 OS: redhat 7.3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: samuelkid at citiz dot net
New email:
PHP Version: OS:

 

 [2005-12-16 08:39 UTC] samuelkid at citiz dot net
Description:
------------
is_int(-2147483648) return false, but it should be true, right?

Reproduce code:
---------------
is_int(-2147483648)

Expected result:
----------------
true

Actual result:
--------------
false

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-16 10:22 UTC] johannes@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

"If you specify a number beyond the bounds of the integer 
type, it will be interpreted as a float instead." 
http://de3.php.net/manual/en/language.types.integer.php 
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 14:01:31 2025 UTC