Edit report at https://bugs.php.net/bug.php?id=64863&edit=1
ID: 64863 Updated by: paj...@php.net Reported by: vr...@php.net Summary: PHP_INT_SIZE is 4 instead of 8 on 64bit Windows build -Status: Assigned +Status: Not a bug Type: Bug Package: *Compile Issues Operating System: Windows 64bit PHP Version: 5.5.0RC1 -Assigned To: szarkos +Assigned To: pajoye Block user comment: N Private report: N New Comment: This is expected. long is always 32bit, no matter the architecture. The actual full 64bit support requires much more deep changes, won't happen in 5.5, but most likely in next major (f.e. 5+1). Previous Comments: ------------------------------------------------------------------------ [2013-05-16 18:21:36] vr...@php.net Steve, can you please take a look? ------------------------------------------------------------------------ [2013-05-16 18:20:01] vr...@php.net Description: ------------ I want to work with DB bigint data type without troubles, I want to call mysql_insert_id() safely. Also some problems in Google Code Jam require 8 bytes int and it's very hard to solve them with 4 bytes int because BC is too slow. I know that this might be by design but it is a bad design. Especially given that Linux 64 bits builds have 8 bytes int. Also the main advantage of 64 bits is to be able to use these 64 bits. Test script: --------------- <?php echo PHP_INT_SIZE; // with php-5.5.0RC1-Win32-VC11-x64.zip Expected result: ---------------- 8 Actual result: -------------- 4 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=64863&edit=1