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条)

报告相同问题?

悬赏问题

  • ¥30 YOLO检测微调结果p为1
  • ¥20 求快手直播间榜单匿名采集ID用户名简单能学会的
  • ¥15 DS18B20内部ADC模数转换器
  • ¥15 做个有关计算的小程序
  • ¥15 MPI读取tif文件无法正常给各进程分配路径
  • ¥15 如何用MATLAB实现以下三个公式(有相互嵌套)
  • ¥30 关于#算法#的问题:运用EViews第九版本进行一系列计量经济学的时间数列数据回归分析预测问题 求各位帮我解答一下
  • ¥15 setInterval 页面闪烁,怎么解决
  • ¥15 如何让企业微信机器人实现消息汇总整合
  • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题