Php 5.5 strict session collision detection

This patch implements

https://wiki.php.net/rfc/strict_sessions
CVE-2011-4718