Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mongodb驱动可能过时了 #8

Open
GongT opened this issue Jan 11, 2013 · 2 comments
Open

Mongodb驱动可能过时了 #8

GongT opened this issue Jan 11, 2013 · 2 comments

Comments

@GongT
Copy link

GongT commented Jan 11, 2013

跟随fedora版本库升级了php-pecl-mongo(stable

现在MongoCollection各种操作最后一个参数都变成option数组了
于是如果用新的驱动的话
DbMongo.class.php第196行的两个调用会出错

我不知道以前这个参数是什么意思……似乎是把true直接删掉就行?

@GongT
Copy link
Author

GongT commented Jan 12, 2013

文档更新了……
1.3.0
The options parameter no longer accepts a boolean to signify an upsert. Instead, this now has to be done with array('upsert' => true).

@GongT
Copy link
Author

GongT commented Jan 14, 2013

new mongo(xxx) 参数也有变化
新的类名叫MongoClient

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant