note 19025 added to function.session-set-save-handler

From: Date: Wed, 13 Feb 2002 17:02:05 +0000
Subject: note 19025 added to function.session-set-save-handler
Groups: php.notes 
Request: Send a blank email to php-notes+get-26562@lists.php.net to get a copy of this message
If you are using PHP >= 4.1.0 with custom session handlers, you MUST ensure your session read function returns a string type even if the session is empty. Returning false or null (as is common) appears to cause a segmentation fault (signal 11) in the web server. You should be able to force a string type thus: return (string)$rtnval; -- http://www.php.net/manual/en/function.session-set-save-handler.php http://master.php.net/manage/user-notes.php?action=edit+19025 http://master.php.net/manage/user-notes.php?action=delete+19025 http://master.php.net/manage/user-notes.php?action=reject+19025

« previous php.notes (#26562) next »