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

From: Date: Fri, 27 May 2016 20:27:49 +0000
Subject: Bug #72272 [Fbk->Opn]: var_dump() incorrect PHP_INT_MAX/MIN info
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-201300@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 User updated by: denixport at gmail dot com Reported by: denixport at gmail dot com Summary: var_dump() incorrect PHP_INT_MAX/MIN info -Status: Feedback +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: I'm using this build: VC14 x64 Non Thread Safe see details below $ php -i phpinfo() PHP Version => 7.0.7 System => Windows NT DENIX-PC 10.0 build 10586 (Windows 10) AMD64 Build Date => May 25 2016 12:48:10 Compiler => MSVC14 (Visual C++ 2015) Architecture => x64 Configure Command => cscript /nologo configure.js "--enable-snapshot-build" "--enable-debug-pack" "--disable-zts" "--with-pdo-oci=c:\php-sdk\oracle\x64\instantclient_12_1\sdk,shar ed" "--with-oci8-12c=c:\php-sdk\oracle\x64\instantclient_12_1\sdk,shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet=shared" "--with-mcrypt=static" "--without-analyzer" "--with-pgo" Server API => Command Line Interface Virtual Directory Support => disabled Configuration File (php.ini) Path => C:\WINDOWS Loaded Configuration File => C:\PHP\php.ini Scan this dir for additional .ini files => (none) Additional .ini files parsed => (none) PHP API => 20151012 PHP Extension => 20151012 Zend Extension => 320151012 Zend Extension Build => API320151012,NTS,VC14 PHP Extension Build => API20151012,NTS,VC14 Debug Build => no Thread Safety => disabled Zend Signal Handling => disabled Zend Memory Manager => enabled Zend Multibyte Support => provided by mbstring IPv6 Support => enabled DTrace Support => disabled Previous Comments: ------------------------------------------------------------------------ [2016-05-27 19:27:29] ab@php.net 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. ------------------------------------------------------------------------ [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 (#201300) next »