mongodb/mongo-php-driver — pull request #247 by derickr (2012-12-07 17:18:18+00:00)
Title: Fixed PHP-633: findAndModify sometimes throws exception on success

Looks like we are getting a float back from the server, which we
are accessing like a unconverted normal long
Although I cannot reproduce this, I suspect this to be the issue