1

I am getting following cursor exception while looping from new PHP driver...

"Could not convert BSON document to a PHP variable"

It works well with old PHP drivers.

2
  • Would you mind adding code? It is hard to tell where a problem might be when there is nothing to check for... Commented Nov 25, 2016 at 7:45
  • Please take a look at: stackoverflow.com/help/how-to-ask Commented Nov 25, 2016 at 8:04

1 Answer 1

1

I got the issue, it was due to bad character inside key of Mongodb document.. sample key: "PR�NO"...

Old PHP-Mongo driver handling it well but new driver version 1.1.8 throwing exception "Could not convert BSON document to a PHP variable"....

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.