summaryrefslogtreecommitdiff
path: root/ext/session/tests
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2002-10-03 16:49:52 +0000
committerSascha Schumann <sas@php.net>2002-10-03 16:49:52 +0000
commit3998374a0d5db3140113260989c322dc337b7633 (patch)
tree26c128b97014369ed219d89394d4ff0127968c39 /ext/session/tests
parent61e47a342eb038b5821e0e36c70d6369061b7e47 (diff)
downloadphp-git-3998374a0d5db3140113260989c322dc337b7633.tar.gz
invalid session.save_path should not cause a segfault
Diffstat (limited to 'ext/session/tests')
-rw-r--r--ext/session/tests/016.phpt19
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/session/tests/016.phpt b/ext/session/tests/016.phpt
new file mode 100644
index 0000000000..934ac6731c
--- /dev/null
+++ b/ext/session/tests/016.phpt
@@ -0,0 +1,19 @@
+--TEST--
+invalid session.save_path should not cause a segfault
+--SKIPIF--
+<?php include('skipif.inc'); ?>
+--INI--
+session.save_path="123;:/really\\completely:::/invalid;;,23123;213"
+session.use_cookies=0
+session.cache_limiter=
+--FILE--
+<?php
+error_reporting(E_ALL);
+
+@session_start();
+$HTTP_SESSION_VARS["test"] = 1;
+@session_write_close();
+print "I live\n";
+?>
+--EXPECT--
+I live