dtu11716 2017-01-26 09:32
浏览 45
已采纳

windows php 64位系统ATM

I'm using this php library. It mentiones this:

This project can run on PHP 7, PHP 5.6 and HHVM, only 64 bit systems are supported ATM.

It works fine in a linux host (cpanel) with php5.6. But doesn't work in windows. I installed wamp. In phpinfo(), it seems everything is ok. Is there anything I'm missing? What is ATM means?

My phpinfo():

enter image description here

Error:

Fatal error: Uncaught exception 'danog\MadelineProto\Exception' with message 'MadelineProto supports only 64 bit systems ATM' in C:\wamp64\www\telegramphp3\src\danog\MadelineProto\API.php on line 30
  • 写回答

2条回答 默认 最新

  • dongluan5740 2017-01-26 10:52
    关注

    Their API.php contains the following code:

    // Detect 64 bit
    if (PHP_INT_SIZE < 8) {
        throw new Exception('MadelineProto supports only 64 bit systems ATM');
    }
    

    What they're doing is not check whenever or not you're running a 64-bit build of PHP or if if your system is 64 bit but rather what the size in bytes for an integer is. That value can be either 4 (32 bit) or 8 (64 bit) on PHP7 (current Windows builds). In older versions of PHP (at least in the 64 bit builds for 5.6, which are marked experimental) that value is going to be always 4.

    So in order to use that library on your system you would need to:

    • Upgrade your PHP version to 7
      • The current Windows builds can be found here, you could try to just replace your current PHP installation or look for an updated package of your ... package.
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题