Bug #72272 [Com]: var_dump() incorrect PHP_INT_MAX/MIN info
| From: | harsha dot patankar at gmail dot com | Date: | Fri, 27 May 2016 16:14:40 +0000 |
| Subject: | Bug #72272 [Com]: var_dump() incorrect PHP_INT_MAX/MIN info | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-201298@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72272&edit=1
ID: 72272
Comment by: harsha dot patankar at gmail dot com
Reported by: denixport at gmail dot com
Summary: var_dump() incorrect PHP_INT_MAX/MIN info
Status: Open
Type: Bug
Package: Unknown/Other Function
Operating System: Windows 10 64bit
PHP Version: 7.0.7
Block user comment: N
Private report: N
New Comment:
It was a missing header issue. Now fixed.
Previous Comments:
------------------------------------------------------------------------
[2016-05-27 04:27:15] denixport at gmail dot com
Description:
------------
var_dump() doesn't show correct info about PHP_INT_MAX and PHP_INT_MIN constants on 64bit
Windows
Test script:
---------------
<?php
echo PHP_INT_MAX, PHP_EOL;
echo PHP_INT_MIN, PHP_EOL;
var_dump(PHP_INT_MAX);
var_dump(PHP_INT_MIN);
Expected result:
----------------
9223372036854775807
-9223372036854775808
int(9223372036854775807)
int(-9223372036854775808)
Actual result:
--------------
9223372036854775807
-9223372036854775808
int(-1)
int(0)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72272&edit=1