modify the php to support 51 storage