(PECL mongo >= 1.0.8)
MongoId::__set_state — 锟斤拷锟斤拷一锟斤拷锟劫碉拷 MongoId
This extension that defines this method is deprecated. Instead, the MongoDB extension should be used. There is no equivalent for this method in the new extension.
锟矫猴拷锟斤拷锟斤拷锟斤拷 PHP 锟节诧拷使锟矫o拷锟矫伙拷锟斤拷锟斤拷要锟斤拷锟斤拷锟斤拷锟斤拷
锟斤拷锟斤拷锟斤拷锟斤拷暮锟斤拷锟斤拷锟揭伙拷锟斤拷模锟�
<?php
public static function __set_state($props) {
return new MongoId("000000000000000000000000");
}
?>
props
锟斤拷锟斤拷锟斤拷锟较斤拷锟斤拷要锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟揭伙拷锟斤拷锟� id锟斤拷锟斤拷锟斤拷 MongoId 示锟斤拷没锟斤拷锟斤拷锟皆o拷锟斤拷锟斤拷锟斤拷锟斤拷没锟矫的★拷
锟斤拷锟斤拷 "000000000000000000000000" 锟斤拷值锟斤拷 id锟斤拷