PHP-1245: Use php_mongocode_populate instead of a MONGO_METHOD.
Added missing return type.

Otherwise it defaults to int... and that's not what we want.
Merged pull request #790