dongliang1996 2013-01-08 17:27
浏览 53

PHP在Windows 7上移位

I have a laptop running Windows7 and if I right-click on "Computer" on the desktop and select properties I can see that "System type" is "64-bit Operating system" If I run PHP_INT_MAX as a watch in PHPStorm it gives me 2147483647, why? Does this indicate that PHPStorm is running as 32 bit or is PHP running in 32 bit mode? If I do php --version I can see that I am running PHP 5.4.7

My actual problem is that I am trying to do $result = $var << 5 and $var was 318 497 757 before I got to this line of code. The $result after this line is 1601993632 but should be 10191928224 (if my math is correct)

What is going wrong and where? I have no idea what is wrong or where? Thanks.

  • 写回答

1条回答 默认 最新

  • drws65968272 2013-01-08 17:32
    关注

    By default, all public PHP builds from windows.php.net website are 32 bit. From your description it sounds like you do have 32-bit one.

    If you want 64-bit PHP then you need to find (or compile it yourself) and use 64-bit PHP build.


    How to check what xx-bit PHP you are using

    Check output of phpinfo() function (or just php -i from command line). Look for Architecture row on the top. 64-bit will have x64 while 32-bit will have x86.

    评论

报告相同问题?

悬赏问题

  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 关于大棚监测的pcb板设计
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)