Php 5.5 strict session collision detection

Improvement of https://github.com/php/php-src/pull/368