Bug #64863 [Opn]: PHP_INT_SIZE is 4 instead of 8 on 64bit Windows build
| From: | vrana@php.net | Date: | Thu, 16 May 2013 18:21:36 +0000 |
| Subject: | Bug #64863 [Opn]: 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-178972@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: vrana@php.net
Reported by: vrana@php.net
Summary: PHP_INT_SIZE is 4 instead of 8 on 64bit Windows
build
Status: Open
Type: Bug
Package: *Compile Issues
Operating System: Windows 64bit
PHP Version: 5.5.0RC1
-Assigned To:
+Assigned To: szarkos
Block user comment: N
Private report: N
New Comment:
Steve, can you please take a look?
Previous Comments:
------------------------------------------------------------------------
[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