Bug #72272 [Opn->Fbk]: var_dump() incorrect PHP_INT_MAX/MIN info

From: Date: Fri, 27 May 2016 19:27:30 +0000
Subject: Bug #72272 [Opn->Fbk]: var_dump() incorrect PHP_INT_MAX/MIN info
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-201299@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 Updated by: ab@php.net Reported by: denixport at gmail dot com Summary: var_dump() incorrect PHP_INT_MAX/MIN info -Status: Open +Status: Feedback 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: Thanks for the report. Though, I cannot reproduce the behavior you describe? Do you compile with vc14 (lower are not supported for 7.0)? Please note also, that stdint.h shouldn't be included directly, see main/php_stdint.h. Thanks. Previous Comments: ------------------------------------------------------------------------ [2016-05-27 16:14:40] harsha dot patankar at gmail dot com It was a missing header issue. Now fixed. ------------------------------------------------------------------------ [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

« previous php.bugs (#201299) next »