Hi Christoph, On Wed, Jul 6, 2016 at 9:10 PM, Christoph Becker <cmbecke...@gmx.de> wrote: > > Yes, I am aware that the patch uses php_random_bytes(), but what happens > when it fails, in which case php_session_create_id() returns null[1]? > Would it be impossible to use a session in this case?
php_session_create_id() may return NULL. It's an usual error. Session module supports session ID creation save handler which may return anything valid for the type. Session module tries to call php_session_create_id() several places/times. If it could not get valid one, it raises E_RECOVERABLE_ERROR or E_ERROR eventually. Although it's not enabled yet, PHP_FUNCTION(session_create_id) returns FALSE it fails. Regards, -- Yasuo Ohgaki yohg...@ohgaki.net -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php