php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64863 PHP_INT_SIZE is 4 instead of 8 on 64bit Windows build
Submitted: 2013-05-16 18:20 UTC Modified: 2013-05-16 18:35 UTC
From: vrana@php.net Assigned: pajoye (profile)
Status: Not a bug Package: *Compile Issues
PHP Version: 5.5.0RC1 OS: Windows 64bit
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: vrana@php.net
New email:
PHP Version: OS:

 

 [2013-05-16 18:20 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-05-16 18:21 UTC] vrana@php.net
-Assigned To: +Assigned To: szarkos
 [2013-05-16 18:21 UTC] vrana@php.net
Steve, can you please take a look?
 [2013-05-16 18:35 UTC] pajoye@php.net
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).
 [2013-05-16 18:35 UTC] pajoye@php.net
-Status: Assigned +Status: Not a bug -Assigned To: szarkos +Assigned To: pajoye
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jan 19 03:01:30 2025 UTC