Bug #64863 [Asn->Nab]: PHP_INT_SIZE is 4 instead of 8 on 64bit Windows build
| From: | pajoye@php.net | Date: | Thu, 16 May 2013 18:35:56 +0000 |
| Subject: | Bug #64863 [Asn->Nab]: PHP_INT_SIZE is 4 instead of 8 on 64bit Windows build | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-178973@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64863&edit=1
ID: 64863
Updated by: pajoye@php.net
Reported by: vrana@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] vrana@php.net
Steve, can you please take a look?
------------------------------------------------------------------------
[2013-05-16 18:20:01] vrana@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