当前位置:
首页 >
Mongo报如下类似错误时的修改方法Cannot natively represent the long 1396367483000 on this platform...
发布时间:2025/4/9
51
豆豆
生活随笔
收集整理的这篇文章主要介绍了
Mongo报如下类似错误时的修改方法Cannot natively represent the long 1396367483000 on this platform...
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
今天通过php连接mongodb,并读取数据时,其中一个字段为: "createTime":NumberLong("1397524645000"),由于太长,一直报如下的错误:
Cannot natively represent the long 1396367483000 on this platform
在国内的网站上查了好长时间,给出的解决方法都是添加:ini_set('mongo.native_long', 1);,结果根本不好使。后来还是通过google查到了解决方法,添加:ini_set('mongo.long_as_object', 1);而不是ini_set('mongo.native_long', 1);。
转载于:https://www.cnblogs.com/kangshuai/p/5012014.html
总结
以上是生活随笔为你收集整理的Mongo报如下类似错误时的修改方法Cannot natively represent the long 1396367483000 on this platform...的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: Module Zero概览
- 下一篇: 忍一时得寸进尺, 退一步变本加厉。