Fix PHP warning and invalid handling of IPv6 addresses
Prepare 1.0.13 release