我正在尝试连接到安装了WAMP x64的Dropbox。
这是我从这个Dropbox php API获得的Dropbox身份验证文件的异常。
致命错误: Dropbox使用64位整数,但看起来我们运行的是不支持64位整数( "C:\Users\Albert\Desktop\www\test\dropbox-sdk\Dropbox\RequestUtil.php"‘)的版本。库: C:\Users\Albert\Desktop\www\test\dropbox-sdk\Dropbox\RequestUtil.php中的C:\Users\Albert\Desktop\www\test\dropbox-sdk\Dropbox\RequestUtil.php在第15行。
我检查了我的PHP版本,上面写着
体系结构x64
我该怎么做才能让我的Dropbox应用程序开始工作?非常感谢。
发布于 2014-01-16 09:36:10
只需在\lib\Dropbox\RequestUtil.php(line.no : 19)中注释以下一行
if (strlen((string) PHP_INT_MAX) < 19) {
// // Looks like we're running on a 32-bit build of PHP. This could cause problems because some of the numbers
// // we use (file sizes, quota, etc) can be larger than 32-bit ints can handle.
throw new \Exception("The Dropbox SDK uses 64-bit integers, but it looks like we're running on a version of PHP that doesn't support 64-bit integers (PHP_INT_MAX=" . ((string) PHP_INT_MAX) . "). Library: \"" . __FILE__ . "\"");
}发布于 2013-11-14 06:13:26
Windows似乎不支持64位整数:
如何在PHP上有64位整数? (第二个答案)
请注意,Windows上的PHP根本不支持64位整数,即使硬件和PHP都是64位的.
也许你应该在你的windows机器上配置一个64位debian版本的linux。无论如何,我认为使用VM而不是在windows上安装WAMP是最好的做法。它稳定,独立,可移植,你不需要处理窗口特定的问题。
https://stackoverflow.com/questions/19970734
复制相似问题