php调用mongodb出现异常:Uncaught MongoDB\Driver\Exception\InvalidArgumentException: Integer overflow detected on your platform: 1484960424767

开始在用php做aggregate操作的时候出现这个异常有点懵逼,查了很久以为是数据太大内存溢出,后来查询了https://stackoverflow.com/questions/41780338/php-mongo-library-overflow-detected/46577854#46577854的正文回答,是因为本地电脑通常安装的phpstudy里边的php都是32位,与64位的mongodb产生冲突了,修复方法应该是使用64位的php修复。

猜你喜欢

转载自www.cnblogs.com/liudamu/p/9339968.html