Home > other >  PHP7 remain fixed to a 64 - bit integer to mongo's question?
PHP7 remain fixed to a 64 - bit integer to mongo's question?

Time:09-27



Php7 after officially abolished the mongo extension, it is recommended to use mongo extension, cannot use MongoInt32, MongoInt64 these two classes to fixed integer types, and there are no such equivalent in directing a new extension, on the contrary, the new extension select the appropriate database according to the value of the integer types; 32-bit and 64 - bit, but I want to define your own data types, 32-bit 32-bit, excuse me what method can efficiently, elegant step to do this?
Environment: centos7 apache2.4, php7.3, directing the extension version 1.5.5, mongodb3.4, laravel5.8 (Jenssegers \ mongo package)



PHP7


CodePudding user response:

I also met your problem how to solve the building Lord
  • Related