欢迎来到代码驿站!

PHP代码

当前位置:首页 > 软件编程 > PHP代码

phpstudy默认不支持64位php的解决方法

时间:2021-05-18 09:43:02|栏目:PHP代码|点击:

备忘一下:

windows上用phpstudy比较简便,但是其默认的php所有版本都是32位的,有坑,比如int最大值。

所以从php官网 点击打开链接http://windows.php.net/download#php-7.0-nts-VC14-x64 , 下载一个64位的php7丢到phpstudy的php目录下面去(和其他版本一起的那个目录);

丢进去之后,把名字改短一点,停掉并重启phpstudy,会自动加载刚丢进去的php版本,切换过来即可。

我用的是nginx+php,其他类型如APACHE, IIS 等 未尝试

注意:PHP官网指出来了,只有7以上才支持64位,以前的都是32位的

x86_64 Builds

The x64 builds of PHP 5 for Windows are experimental, and do not provide 64-bit integer or large file support.

PHP 7 provides full 64-bit support. The x64 builds of PHP 7 support native 64-bit integers, LFS, 64-bit memory_limit and much more.

上一篇:PHP时间类完整代码实例

栏    目:PHP代码

下一篇:Yii框架ACF(accessController)简单权限控制操作示例

本文标题:phpstudy默认不支持64位php的解决方法

本文地址:http://www.codeinn.net/misctech/123682.html

推荐教程

广告投放 | 联系我们 | 版权申明

重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。

如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

联系QQ:914707363 | 邮箱:codeinn#126.com(#换成@)

Copyright © 2020 代码驿站 版权所有