Closed rtorcato closed 11 years ago
Are you using a HEAD install of the PHP MongoDB driver?
it's latest version. https://github.com/mongodb/mongo-php-driver
they updated to mongoclient awhile ago http://derickrethans.nl/mongoclient.html
Yeah, but they didn't start with the deprecation warnings until after the current released version, iirc. Did you install from source? Or are you seeing that error with a released version of the driver?
this is the driver i am using: curl https://codeload.github.com/mongodb/mongo-php-driver/zip/master > mongo-php-driver-master.zip
Gotcha. That's an unreleased version with a backwards compatibility break. As usually.
I'll get a fix out by the time it's released :)
ah ok. Ya I was having a hard time trying to get mongo extension to install on bitnami lamp stack and had to use curl to install the zip. I guess I should've paid more attention to the issues with that version. It's a dev server anyway. So not a big deal on my side.
thanks for the quick replies.
you might(?) be able to get the warnings to go away by changing the PHP error level for that server or app. give it a shot and let me know if it works?
hmm changed the php error level but it didn't work.
@rtorcato Mind giving the develop
branch version a try? It should be fixed.
hey it works….great job! thanks
no problem. i'll close this issue, but it likely won't be released until either the next version of the driver ships, or Genghis ships v2.4.
This has been released in v2.3.9.
I get the same error with the latest version of the driver and latest version of mongoDB on windows 7.
Using mongoclient instead of mongo I get when trying to delete document:
PHP error: MongoCollection::remove(): The 'safe' option is deprecated, please use 'w' instead
similar errors for updates and inserts.