From 148bb622faa71090a3f6d9721aeb28a4ac720496 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Sat, 7 Nov 2015 07:17:43 -0800 Subject: [PATCH] Revert "Fixed bug #70876 Segmentation fault when regenerating session id with strict mode" This reverts commit 0bf3ebb4ba77f38261d9cb21a205a7d31b7f85cf. --- ext/session/mod_files.c | 4 ---- ext/session/tests/bug70876.phpt | 17 ----------------- 2 files changed, 21 deletions(-) delete mode 100644 ext/session/tests/bug70876.phpt diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index 933df93ca8..8301b73f5e 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -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 index 33e0323b9f..0000000000 --- a/ext/session/tests/bug70876.phpt +++ /dev/null @@ -1,17 +0,0 @@ ---TEST-- -Bug #70876 Segmentation fault when regenerating session id with strict mode ---SKIPIF-- - ---INI-- -html_errors=0 -session.save_handler=files ---FILE-- - ---EXPECT-- -ok \ No newline at end of file -- 2.50.1