On Fri, 8 Feb 2013, Hannes Magnusson wrote:

> > +
> > +			/* check for defined classes */
> > +			/* MongoId */
> > +			if (clazz == mongo_ce_Id) {
> > +				mongo_id *id;
> > +
> > +				PHP_MONGO_SERIALIZE_KEY(BSON_OID);
> > +				id = (mongo_id*)zend_object_store_get_object(*data TSRMLS_CC);
> > +				if (!id->id) {
> > +					return ZEND_HASH_APPLY_KEEP;
> > +				}
> > +
> > +				php_mongo_serialize_bytes(buf, id->id, OID_SIZE);
> > +			}
> > +			else if (clazz == mongo_ce_Date) {
> > +			/* MongoDate */
> 
> shouldn't that comment have been before the else if? all the others do..

Fixed (once I commit and push)