Fixed bug #66827 Session raises E_NOTICE when session name variable is array

This is the same PR of
https://github.com/php/php-src/pull/725

Sent to see Travis build.