1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 02:33:17 +02:00

- Fixed bug #60860 (session.save_handler=user without defined function core dumps)

This commit is contained in:
Felipe Pena
2012-01-28 21:02:09 +00:00
parent 6e77fce6a6
commit 2cb820275d
3 changed files with 28 additions and 0 deletions
+4
View File
@@ -8,6 +8,10 @@ PHP NEWS
- OpenSSL:
. Fix possible attack in SSL sockets with SSL 3.0 / TLS 1.0.
CVE-2011-3389. (Scott)
- Session:
. Fixed bug #60860 (session.save_handler=user without defined function core
dumps). (Felipe)
19 Jan 2012, PHP 5.4.0 RC6
+7
View File
@@ -80,6 +80,13 @@ PS_OPEN_FUNC(user)
{
zval *args[2];
STDVARS;
if (PSF(open) == NULL) {
php_error_docref(NULL TSRMLS_CC, E_WARNING,
"user session functions not defined");
return FAILURE;
}
SESS_ZVAL_STRING((char*)save_path, args[0]);
SESS_ZVAL_STRING((char*)session_name, args[1]);
+17
View File
@@ -0,0 +1,17 @@
--TEST--
Bug #60860 (session.save_handler=user without defined function core dumps)
--SKIPIF--
<?php include('skipif.inc'); ?>
--INI--
session.save_handler=user
--FILE--
<?php
session_start();
echo "ok\n";
?>
--EXPECTF--
Warning: session_start(): user session functions not defined in %s on line 3
Fatal error: session_start(): Failed to initialize storage module: user (path: ) in %s on line 3