We use an ArrayHelper class wich convert the documents from MongoDB to multi array in Yii2 PHP framework.
The helper explare all elements of the objects and it works recursively.
We stored the creation of datetime in UTCDateTime, so this is an object in our documents.
The ArrayHelper want to go along the object array with foreach. When the foreach reach the UTCDateTime object then the cycle goes infinity loop. For something it can not go over to the next item.
I tried with the following versions of the mongodb PHP extension: 1.3.x, 1.4.0-beta1.
The latest version where the problem does not occur the 1.2.11 version.