]> granicus.if.org Git - php/commitdiff
Revert "Fixed bug #70876 Segmentation fault when regenerating session id with strict...
authorXinchen Hui <laruence@gmail.com>
Sat, 7 Nov 2015 15:17:43 +0000 (07:17 -0800)
committerXinchen Hui <laruence@gmail.com>
Sat, 7 Nov 2015 15:17:43 +0000 (07:17 -0800)
This reverts commit 0bf3ebb4ba77f38261d9cb21a205a7d31b7f85cf.

ext/session/mod_files.c
ext/session/tests/bug70876.phpt [deleted file]

index 933df93ca87b1dd45082863abc79e6126f218c12..8301b73f5ee3edce422e66f4f53cf08842c0da55 100644 (file)
@@ -702,10 +702,6 @@ PS_VALIDATE_SID_FUNC(files)
 {
        PS_FILES_DATA;
 
-       if (!data) {
-               return FAILURE;
-       }
-
        return ps_files_key_exists(data, ZSTR_VAL(key));
 }
 
diff --git a/ext/session/tests/bug70876.phpt b/ext/session/tests/bug70876.phpt
deleted file mode 100644 (file)
index 33e0323..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
---TEST--
-Bug #70876 Segmentation fault when regenerating session id with strict mode
---SKIPIF--
-<?php include('skipif.inc'); ?>
---INI--
-html_errors=0
-session.save_handler=files
---FILE--
-<?php
-ini_set('session.use_strict_mode', true);
-session_start();
-session_regenerate_id();
-
-echo "ok";
-?>
---EXPECT--
-ok
\ No newline at end of file