]> granicus.if.org Git - php/commitdiff
Allow running session tests in parallel
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 23 Oct 2020 14:17:13 +0000 (16:17 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 23 Oct 2020 14:55:11 +0000 (16:55 +0200)
Use unique session IDs and/or save paths. Also removes the annoying
order-dependence of session tests.

47 files changed:
ext/session/tests/003.phpt
ext/session/tests/004.phpt
ext/session/tests/005.phpt
ext/session/tests/006.phpt
ext/session/tests/009.phpt
ext/session/tests/012.phpt
ext/session/tests/013.phpt
ext/session/tests/014.phpt
ext/session/tests/015.phpt
ext/session/tests/018.phpt
ext/session/tests/019.phpt
ext/session/tests/020.phpt
ext/session/tests/021.phpt
ext/session/tests/023.phpt
ext/session/tests/024.phpt
ext/session/tests/025.phpt
ext/session/tests/026.phpt
ext/session/tests/027.phpt
ext/session/tests/CONFLICTS [deleted file]
ext/session/tests/bug41600.phpt
ext/session/tests/bug42596.phpt
ext/session/tests/rfc1867.phpt
ext/session/tests/rfc1867_cleanup.phpt
ext/session/tests/rfc1867_disabled.phpt
ext/session/tests/rfc1867_disabled_2.phpt
ext/session/tests/rfc1867_inter.phpt
ext/session/tests/rfc1867_no_name.phpt
ext/session/tests/rfc1867_sid_cookie.phpt
ext/session/tests/rfc1867_sid_get.phpt
ext/session/tests/rfc1867_sid_get_2.phpt
ext/session/tests/rfc1867_sid_only_cookie.phpt
ext/session/tests/rfc1867_sid_only_cookie_2.phpt
ext/session/tests/rfc1867_sid_post.phpt
ext/session/tests/session_basic1.phpt
ext/session/tests/session_basic2.phpt
ext/session/tests/session_basic3.phpt
ext/session/tests/session_basic5.phpt
ext/session/tests/session_commit_variation4.phpt
ext/session/tests/session_module_name_variation4.phpt
ext/session/tests/session_save_path_variation4.phpt
ext/session/tests/session_save_path_variation5.phpt
ext/session/tests/session_set_save_handler_basic.phpt
ext/session/tests/session_set_save_handler_variation2.phpt
ext/session/tests/session_set_save_handler_variation3.phpt
ext/session/tests/session_set_save_handler_variation4.phpt
ext/session/tests/session_set_save_handler_variation5.phpt
ext/session/tests/session_set_save_handler_variation6.phpt

index e7e429437513a3dabc6c8043114a761945ca9b57..4f9b37b75d93e7777e79de835d7b3df65a39f266 100644 (file)
@@ -17,7 +17,7 @@ class foo {
     function method() { $this->yes++; }
 }
 
-session_id("abtest");
+session_id("test003");
 session_start();
 session_decode('baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:1;}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:1;}}');
 
index 4b81a088b2fa6b7d002de4d779302eb2fac5552c..c3ed0c56165c5fa85d76ea294a4bb2eedeec2905 100644 (file)
@@ -55,7 +55,7 @@ class foo {
 
 session_set_save_handler(array($hnd, "open"), array($hnd, "close"), array($hnd, "read"), array($hnd, "write"), array($hnd, "destroy"), array($hnd, "gc"));
 
-session_id("abtest");
+session_id("test004");
 session_start();
 $_SESSION["baz"]->method();
 $_SESSION["arr"][3]->method();
@@ -75,7 +75,7 @@ session_destroy();
 ?>
 --EXPECT--
 OPEN: PHPSESSID
-READ: abtest
+READ: test004
 object(foo)#2 (2) {
   ["bar"]=>
   string(2) "ok"
@@ -91,9 +91,9 @@ array(1) {
     int(2)
   }
 }
-WRITE: abtest, baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:2;}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:2;}}
+WRITE: test004, baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:2;}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:2;}}
 OPEN: PHPSESSID
-READ: abtest
+READ: test004
 object(foo)#3 (2) {
   ["bar"]=>
   string(2) "ok"
@@ -109,4 +109,4 @@ array(1) {
     int(2)
   }
 }
-DESTROY: abtest
+DESTROY: test004
index a7b42de7fa38b03de38a2a6f3238afc3cc15a2e1..2b51ceed948419a17d38bbc71d35867f857e58b3 100644 (file)
@@ -56,7 +56,7 @@ class foo {
 
 session_set_save_handler(array($hnd, "open"), array($hnd, "close"), array($hnd, "read"), array($hnd, "write"), array($hnd, "destroy"), array($hnd, "gc"));
 
-session_id("abtest");
+session_id("test005");
 session_start();
 session_decode($hnd->data);
 
@@ -91,7 +91,7 @@ session_destroy();
 ?>
 --EXPECT--
 OPEN: PHPSESSID
-READ: abtest
+READ: test005
 object(foo)#4 (2) {
   ["bar"]=>
   string(2) "ok"
@@ -107,10 +107,10 @@ array(1) {
     int(2)
   }
 }
-WRITE: abtest, baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:2;}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:2;}}
+WRITE: test005, baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:2;}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:2;}}
 CLOSE
 OPEN: PHPSESSID
-READ: abtest
+READ: test005
 object(foo)#2 (2) {
   ["bar"]=>
   string(2) "ok"
@@ -127,10 +127,10 @@ array(1) {
   }
 }
 int(123)
-WRITE: abtest, baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:3;}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:3;}}c|i:123;
+WRITE: test005, baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:3;}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:3;}}c|i:123;
 CLOSE
 OPEN: PHPSESSID
-READ: abtest
+READ: test005
 object(foo)#4 (2) {
   ["bar"]=>
   string(2) "ok"
@@ -147,5 +147,5 @@ array(1) {
   }
 }
 int(123)
-DESTROY: abtest
+DESTROY: test005
 CLOSE
index 68cea7314a90aadaad5f02edb4497c32b09866e3..e3c048748f0a15bb86795699ad0131caec5b8035 100644 (file)
@@ -13,7 +13,7 @@ session.save_handler=files
 error_reporting(E_ALL);
 ob_start();
 
-session_id("abtest");
+session_id("test006");
 session_start();
 
 class a {
index 10069c21d0e83068e3cee647f4cb9b70efe075c4..898cf76a5a355318607a3312cdffa7eca8299819 100644 (file)
@@ -13,14 +13,14 @@ session.save_handler=files
 error_reporting(E_ALL);
 ob_start();
 
-session_id("abtest");
+session_id("test009");
 
 ### Phase 1 cleanup
 session_start();
 session_destroy();
 
 ### Phase 2 $_SESSION["c"] does not contain any value
-session_id("abtest");
+session_id("test009");
 session_start();
 var_dump($_SESSION);
 $_SESSION["name"] = "foo";
index c555d2ca1e8b93120d426257c2fc03554b724fdf..ad3f54962e5a0a3d8b0841a1ab85d84c44c6c186 100644 (file)
@@ -14,7 +14,7 @@ error_reporting(E_ALL);
 
 ### Absurd example, value of $_SESSION does not matter
 
-session_id("abtest");
+session_id("test012");
 session_start();
 $_SESSION["_SESSION"] = Array();
 $_SESSION = "kk";
index 32909eb58c6fae7b966c9d5681942d638cacd5e8..07fcea407b23b882d3ca37545ed4b16f25f6bd10 100644 (file)
@@ -12,10 +12,10 @@ session.save_handler=files
 <?php
 error_reporting(E_ALL);
 
-session_id("abtest");
+session_id("test013");
 session_start();
 session_destroy();
-session_id("abtest2");
+session_id("test013-2");
 session_start();
 session_destroy();
 
index d8369cfec59830dac22dce2a822ec2540352585e..a0c65152434f397bad796c1d24c91c07169e20ed 100644 (file)
@@ -14,7 +14,7 @@ session.save_handler=files
 <?php
 error_reporting(E_ALL);
 
-session_id("abtest");
+session_id("test014");
 session_start();
 
 ?>
index 527b86bc1d1b0b2c05a55c2fc6f2f05c7aa264a1..788f1eac063ac7b987f9aed1877c9cd8ca314856 100644 (file)
@@ -16,7 +16,7 @@ session.save_handler=files
 <?php
 error_reporting(E_ALL);
 
-session_id("abtest");
+session_id("test015");
 session_start();
 ?>
 <a href="/link?<?php echo SID; ?>">
@@ -24,4 +24,4 @@ session_start();
 session_destroy();
 ?>
 --EXPECT--
-<a href="/link?PHPSESSID=abtest&PHPSESSID=abtest">
+<a href="/link?PHPSESSID=test015&PHPSESSID=test015">
index 5ec132b34f090ddfd949056da923318303feb0ea..d132abf7173bd8b161420fbcfc780bc9301c6af5 100644 (file)
@@ -16,7 +16,7 @@ session.save_handler=files
 
 error_reporting(E_ALL);
 
-session_id("abtest");
+session_id("test018");
 session_start();
 ?>
 <form accept-charset="ISO-8859-15, ISO-8859-1" action=url.php>
@@ -24,4 +24,4 @@ session_start();
 session_destroy();
 ?>
 --EXPECT--
-<form accept-charset="ISO-8859-15, ISO-8859-1" action=url.php><input type="hidden" name="PHPSESSID" value="abtest" />
+<form accept-charset="ISO-8859-15, ISO-8859-1" action=url.php><input type="hidden" name="PHPSESSID" value="test018" />
index d9a478245b92ee465cc26ba0e3ff546a072f8ab8..e3793a55222681e2245ef2b161b4cb6fddd4df67 100644 (file)
@@ -23,7 +23,7 @@ class TFoo {
     }
 }
 
-session_id("abtest");
+session_id("test019");
 session_start();
 
 $_SESSION["o1"] = new TFoo(42);
index 267e52191cf25c8719eb28d2373e0a26e96c685e..f4ec38c8fbb45ad833d24e16532fafcdf9b0a3ec 100644 (file)
@@ -17,7 +17,7 @@ session.save_handler=files
 
 error_reporting(E_ALL);
 
-session_id("abtest");
+session_id("test020");
 session_start();
 ?>
 <a href="link.php?a=b">
@@ -25,4 +25,4 @@ session_start();
 session_destroy();
 ?>
 --EXPECT--
-<a href="link.php?a=b&amp;PHPSESSID=abtest">
+<a href="link.php?a=b&amp;PHPSESSID=test020">
index 4a97d7d32a087f111592a70c528e98f654335945..2532324feeb3290cf46b2f050ffcfad5a995f52b 100644 (file)
@@ -19,7 +19,7 @@ error_reporting(E_ALL);
 ini_set('session.trans_sid_hosts', 'php.net');
 $_SERVER['HTTP_HOST'] = 'php.net';
 
-session_id("abtest");
+session_id("test021");
 session_start();
 ?>
 <form action="//bad.net/do.php">
@@ -60,11 +60,11 @@ session_destroy();
 --EXPECT--
 <form action="//bad.net/do.php">
 <fieldset>
-<form action="//php.net/do.php"><input type="hidden" name="PHPSESSID" value="abtest" />
+<form action="//php.net/do.php"><input type="hidden" name="PHPSESSID" value="test021" />
 <fieldset>
-<form action="../do.php"><input type="hidden" name="PHPSESSID" value="abtest" />
+<form action="../do.php"><input type="hidden" name="PHPSESSID" value="test021" />
 <fieldset>
-<form action="/do.php"><input type="hidden" name="PHPSESSID" value="abtest" />
+<form action="/do.php"><input type="hidden" name="PHPSESSID" value="test021" />
 <fieldset>
-<form action="/foo/do.php"><input type="hidden" name="PHPSESSID" value="abtest" />
+<form action="/foo/do.php"><input type="hidden" name="PHPSESSID" value="test021" />
 <fieldset>
index 23c7096f234c8b73af3f41038c32cf6ae7987b16..e9ce0842560939c57151bb97509d86b264e85ec3 100644 (file)
@@ -17,7 +17,7 @@ class foo {
     function method() { $this->yes++; }
 }
 
-session_id("abtest");
+session_id("test023");
 session_start();
 session_decode('baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:1;}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:1;}}');
 $baz = $_SESSION['baz'];
index 174f2e263963e15393a430c8ac447e4ccd3ea588..913956f5b37b6a9f84dbd43c5d18fb78f7a6db32 100644 (file)
@@ -56,7 +56,7 @@ class foo {
 
 session_set_save_handler(array($hnd, "open"), array($hnd, "close"), array($hnd, "read"), array($hnd, "write"), array($hnd, "destroy"), array($hnd, "gc"));
 
-session_id("abtest");
+session_id("test024");
 session_start();
 
 $baz = $_SESSION['baz'];
@@ -79,7 +79,7 @@ session_destroy();
 ?>
 --EXPECTF--
 OPEN: PHPSESSID
-READ: abtest
+READ: test024
 object(foo)#%d (2) {
   ["bar"]=>
   string(2) "ok"
@@ -95,9 +95,9 @@ array(1) {
     int(2)
   }
 }
-WRITE: abtest, baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:2;}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:2;}}
+WRITE: test024, baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:2;}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:2;}}
 OPEN: PHPSESSID
-READ: abtest
+READ: test024
 object(foo)#%d (2) {
   ["bar"]=>
   string(2) "ok"
@@ -113,4 +113,4 @@ array(1) {
     int(2)
   }
 }
-DESTROY: abtest
+DESTROY: test024
index 172ea579c6500adf8a240135a19c5367f6463ec7..4e91da97960b99dd220d612c48e9d67480b09b8c 100644 (file)
@@ -57,7 +57,7 @@ class foo {
 
 session_set_save_handler(array($hnd, "open"), array($hnd, "close"), array($hnd, "read"), array($hnd, "write"), array($hnd, "destroy"), array($hnd, "gc"));
 
-session_id("abtest");
+session_id("test025");
 session_start();
 $baz = $_SESSION['baz'];
 $arr = $_SESSION['arr'];
@@ -93,7 +93,7 @@ session_destroy();
 ?>
 --EXPECTF--
 OPEN: PHPSESSID
-READ: abtest
+READ: test025
 object(foo)#%d (2) {
   ["bar"]=>
   string(2) "ok"
@@ -109,10 +109,10 @@ array(1) {
     int(2)
   }
 }
-WRITE: abtest, baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:2;}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:2;}}
+WRITE: test025, baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:2;}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:2;}}
 CLOSE
 OPEN: PHPSESSID
-READ: abtest
+READ: test025
 object(foo)#%d (2) {
   ["bar"]=>
   string(2) "ok"
@@ -129,10 +129,10 @@ array(1) {
   }
 }
 int(123)
-WRITE: abtest, baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:3;}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:3;}}c|i:123;
+WRITE: test025, baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:3;}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:3;}}c|i:123;
 CLOSE
 OPEN: PHPSESSID
-READ: abtest
+READ: test025
 object(foo)#%d (2) {
   ["bar"]=>
   string(2) "ok"
@@ -149,5 +149,5 @@ array(1) {
   }
 }
 int(123)
-DESTROY: abtest
+DESTROY: test025
 CLOSE
index b61039ee0c245fdd87e66a34f2b0ae97a53a0c40..f5abdac0a573b5d8e5311a3f2c5dd7e43f9bb717 100644 (file)
@@ -13,7 +13,7 @@ session.save_handler=files
 error_reporting(E_ALL);
 ob_start();
 
-session_id("abtest");
+session_id("test026");
 session_start();
 
 class a {
index ebaf25467c969caba7da798dfd13fff1328eb873..969bc5b87219f2bd42773daf2ccaa1a3a55dd467 100644 (file)
@@ -13,14 +13,14 @@ session.save_handler=files
 error_reporting(E_ALL);
 ob_start();
 
-session_id("abtest");
+session_id("test027");
 
 ### Phase 1 cleanup
 session_start();
 session_destroy();
 
 ### Phase 2 $_SESSION["c"] does not contain any value
-session_id("abtest");
+session_id("test027");
 session_start();
 var_dump($_SESSION);
 $_SESSION["name"] = "foo";
diff --git a/ext/session/tests/CONFLICTS b/ext/session/tests/CONFLICTS
deleted file mode 100644 (file)
index 30888ae..0000000
+++ /dev/null
@@ -1 +0,0 @@
-session
index 79d5e128419f4933c20a8c6f0242db03a201bcc3..d4dfce9d884b3cc20191515e37c9fa6688a92b64 100644 (file)
@@ -17,7 +17,7 @@ session.save_handler=files
 
 error_reporting(E_ALL);
 
-session_id("abtest");
+session_id("bug41600");
 session_start();
 ?>
 <a href="link.php?a=b">
@@ -25,4 +25,4 @@ session_start();
 session_destroy();
 ?>
 --EXPECT--
-<a href="link.php?a=b&amp;PHPSESSID=abtest">
+<a href="link.php?a=b&amp;PHPSESSID=bug41600">
index f27e86387e4fa5890085bff5ee75ac5c2c23e417..83567bde5f41d79170b84ee99a30a70a41227595 100644 (file)
@@ -15,7 +15,7 @@ session.serialize_handler=php
 session.save_handler=files
 --FILE--
 <?php
-$sessdir = __DIR__.'/sessions/';
+$sessdir = __DIR__.'/bug42596/';
 @rmdir($sessdir);
 mkdir($sessdir);
 $save_path = '0;0777;'.$sessdir;
index 0e189b7aa6545cd6ded77c03e0ae512838eb7b89..a5ae8b22181f7a3b9e45d7b883e3e9f93fc44266 100644 (file)
@@ -18,15 +18,15 @@ session.save_handler=files
 --SKIPIF--
 <?php include('skipif.inc'); ?>
 --COOKIE--
-PHPSESSID=rfc1867-tests
+PHPSESSID=rfc1867
 --GET--
-PHPSESSID=rfc1867-tests-get
+PHPSESSID=rfc1867-get
 --POST_RAW--
 Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
 -----------------------------20896060251896012921717172737
 Content-Disposition: form-data; name="PHPSESSID"
 
-rfc1867-tests-post
+rfc1867-post
 -----------------------------20896060251896012921717172737
 Content-Disposition: form-data; name="PHP_SESSION_UPLOAD_PROGRESS"
 
@@ -50,7 +50,7 @@ var_dump($_SESSION["upload_progress_" . basename(__FILE__)]);
 session_destroy();
 ?>
 --EXPECTF--
-string(%d) "rfc1867-tests"
+string(%d) "rfc1867"
 bool(true)
 array(2) {
   ["file1"]=>
index ae5dcbe8dcfa24c66c3ed795f242a5d35731c32f..9baa6144ba688066313c38cd3e98ff39fee8194b 100644 (file)
@@ -18,15 +18,15 @@ session.save_handler=files
 --SKIPIF--
 <?php include('skipif.inc'); ?>
 --COOKIE--
-PHPSESSID=rfc1867-tests
+PHPSESSID=rfc1867-cleanup
 --GET--
-PHPSESSID=rfc1867-tests-get
+PHPSESSID=rfc1867-cleanup-get
 --POST_RAW--
 Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
 -----------------------------20896060251896012921717172737
 Content-Disposition: form-data; name="PHPSESSID"
 
-rfc1867-tests-post
+rfc1867-cleanup-post
 -----------------------------20896060251896012921717172737
 Content-Disposition: form-data; name="PHP_SESSION_UPLOAD_PROGRESS"
 
@@ -50,7 +50,7 @@ var_dump(isset($_SESSION["upload_progress_" . basename(__FILE__)]));
 session_destroy();
 ?>
 --EXPECTF--
-string(%d) "rfc1867-tests"
+string(%d) "rfc1867-cleanup"
 bool(true)
 array(2) {
   ["file1"]=>
index 5bedb1de88fc2ffd878c2da02fc69a722f4265cd..8d8effd1f42cab9c39a744412dde628fb8e6e10f 100644 (file)
@@ -17,15 +17,15 @@ session.save_handler=files
 --SKIPIF--
 <?php include('skipif.inc'); ?>
 --COOKIE--
-PHPSESSID=rfc1867-tests
+PHPSESSID=rfc1867-disabled
 --GET--
-PHPSESSID=rfc1867-tests-get
+PHPSESSID=rfc1867-disabled-get
 --POST_RAW--
 Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
 -----------------------------20896060251896012921717172737
 Content-Disposition: form-data; name="PHPSESSID"
 
-rfc1867-tests-post
+rfc1867-disabled-post
 -----------------------------20896060251896012921717172737
 Content-Disposition: form-data; name="file1"; filename="file1.txt"
 
@@ -44,7 +44,7 @@ var_dump(isset($_SESSION["upload_progress_" . basename(__FILE__)]));
 session_destroy();
 ?>
 --EXPECTF--
-string(%d) "rfc1867-tests"
+string(%d) "rfc1867-disabled"
 array(2) {
   ["file1"]=>
   array(5) {
index d63748369d2c8059327883de79ac2fae338d5382..c539c6eaeae4e1e742b4e079c74580e48886ef35 100644 (file)
@@ -17,15 +17,15 @@ session.save_handler=files
 --SKIPIF--
 <?php include('skipif.inc'); ?>
 --COOKIE--
-PHPSESSID=rfc1867-tests
+PHPSESSID=rfc1867-disabled-2
 --GET--
-PHPSESSID=rfc1867-tests-get
+PHPSESSID=rfc1867-disabled-2-get
 --POST_RAW--
 Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
 -----------------------------20896060251896012921717172737
 Content-Disposition: form-data; name="PHPSESSID"
 
-rfc1867-tests-post
+rfc1867-disabled-2-post
 -----------------------------20896060251896012921717172737
 Content-Disposition: form-data; name="file1"; filename="file1.txt"
 
@@ -44,7 +44,7 @@ var_dump(isset($_SESSION["upload_progress_" . basename(__FILE__)]));
 session_destroy();
 ?>
 --EXPECTF--
-string(%d) "rfc1867-tests"
+string(%d) "rfc1867-disabled-2"
 array(2) {
   ["file1"]=>
   array(5) {
index b961bbcac3053d0cfcec7908b633895f8c82500b..fd28dfe07a30ce4656fe6682385d1173b2ddc864 100644 (file)
@@ -18,15 +18,15 @@ session.save_handler=files
 --SKIPIF--
 <?php include('skipif.inc'); ?>
 --COOKIE--
-PHPSESSID=rfc1867-tests
+PHPSESSID=rfc1867-inter
 --GET--
-PHPSESSID=rfc1867-tests-get
+PHPSESSID=rfc1867-inter-get
 --POST_RAW--
 Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
 -----------------------------20896060251896012921717172737
 Content-Disposition: form-data; name="PHPSESSID"
 
-rfc1867-tests-post
+rfc1867-inter-post
 -----------------------------20896060251896012921717172737
 Content-Disposition: form-data; name="PHP_SESSION_UPLOAD_PROGRESS"
 
@@ -54,7 +54,7 @@ var_dump(isset($_SESSION["upload_progress_" . basename(__FILE__) . "_2"]));
 session_destroy();
 ?>
 --EXPECTF--
-string(%d) "rfc1867-tests"
+string(%d) "rfc1867-inter"
 array(2) {
   ["file1"]=>
   array(5) {
index 98e8e7cf0988bb4980e431470476868b854f34ef..15877a664e644a0f9df61ff6a3ac97f9929c42d3 100644 (file)
@@ -17,15 +17,15 @@ session.save_handler=files
 --SKIPIF--
 <?php include('skipif.inc'); ?>
 --COOKIE--
-PHPSESSID=rfc1867-tests
+PHPSESSID=rfc1867-no-name
 --GET--
-PHPSESSID=rfc1867-tests-get
+PHPSESSID=rfc1867-no-name-get
 --POST_RAW--
 Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
 -----------------------------20896060251896012921717172737
 Content-Disposition: form-data; name="PHPSESSID"
 
-rfc1867-tests-post
+rfc1867-no-name-post
 -----------------------------20896060251896012921717172737
 Content-Disposition: form-data; name="file1"; filename="file1.txt"
 
@@ -44,7 +44,7 @@ var_dump(isset($_SESSION["upload_progress_" . basename(__FILE__)]));
 session_destroy();
 ?>
 --EXPECTF--
-string(%d) "rfc1867-tests"
+string(%d) "rfc1867-no-name"
 array(2) {
   ["file1"]=>
   array(5) {
index 804a9ba3084b32e4743c5c4070a97065d4da2aaf..85c28934f440bfb6bcf637b0e886cc1ea59094e2 100644 (file)
@@ -17,15 +17,15 @@ session.save_handler=files
 --SKIPIF--
 <?php include('skipif.inc'); ?>
 --COOKIE--
-PHPSESSID=rfc1867-tests
+PHPSESSID=rfc1867-sid-cookie
 --GET--
-PHPSESSID=rfc1867-tests-get
+PHPSESSID=rfc1867-sid-cookie-get
 --POST_RAW--
 Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
 -----------------------------20896060251896012921717172737
 Content-Disposition: form-data; name="PHPSESSID"
 
-rfc1867-tests-post
+rfc1867-sid-cookie-post
 -----------------------------20896060251896012921717172737
 Content-Disposition: form-data; name="PHP_SESSION_UPLOAD_PROGRESS"
 
@@ -49,7 +49,7 @@ var_dump($_SESSION["upload_progress_" . basename(__FILE__)]);
 session_destroy();
 ?>
 --EXPECTF--
-string(%d) "rfc1867-tests"
+string(%d) "rfc1867-sid-cookie"
 bool(true)
 array(2) {
   ["file1"]=>
index 17d1ebce0f5adbeb136e6508daf97fa2adf3c319..dfb192cb47cb0f97ca7cd2fb96613848bf09e8c9 100644 (file)
@@ -17,13 +17,13 @@ session.save_handler=files
 --SKIPIF--
 <?php include('skipif.inc'); ?>
 --GET--
-PHPSESSID=rfc1867-tests
+PHPSESSID=rfc1867-sid-get
 --POST_RAW--
 Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
 -----------------------------20896060251896012921717172737
 Content-Disposition: form-data; name="PHPSESSID"
 
-rfc1867-tests-post
+rfc1867-sid-get-post
 -----------------------------20896060251896012921717172737
 Content-Disposition: form-data; name="PHP_SESSION_UPLOAD_PROGRESS"
 
@@ -47,7 +47,7 @@ var_dump($_SESSION["upload_progress_" . basename(__FILE__)]);
 session_destroy();
 ?>
 --EXPECTF--
-string(%d) "rfc1867-tests"
+string(%d) "rfc1867-sid-get"
 bool(true)
 array(2) {
   ["file1"]=>
index 4b32c6e3528713d1f3ba373682767201327f603a..33e4489cc8bd89d718911a03e97d7fcec6b0cf02 100644 (file)
@@ -17,15 +17,15 @@ session.save_handler=files
 --SKIPIF--
 <?php include('skipif.inc'); ?>
 --COOKIE--
-PHPSESSID=rfc1867-tests-cookie
+PHPSESSID=rfc1867-sid-get-2-cookie
 --GET--
-PHPSESSID=rfc1867-tests
+PHPSESSID=rfc1867-sid-get-2
 --POST_RAW--
 Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
 -----------------------------20896060251896012921717172737
 Content-Disposition: form-data; name="PHPSESSID"
 
-rfc1867-tests-post
+rfc1867-sid-get-2-post
 -----------------------------20896060251896012921717172737
 Content-Disposition: form-data; name="PHP_SESSION_UPLOAD_PROGRESS"
 
@@ -49,7 +49,7 @@ var_dump($_SESSION["upload_progress_" . basename(__FILE__)]);
 session_destroy();
 ?>
 --EXPECTF--
-string(%d) "rfc1867-tests"
+string(%d) "rfc1867-sid-get-2"
 bool(true)
 array(2) {
   ["file1"]=>
index 0c376bb026a5377167815a262f853d49b57b8a42..54897b91c85820f8649483eafd9128ecae22ca9c 100644 (file)
@@ -17,15 +17,15 @@ session.save_handler=files
 --SKIPIF--
 <?php include('skipif.inc'); ?>
 --COOKIE--
-PHPSESSID=rfc1867-tests
+PHPSESSID=rfc1867-sid-only-cookie
 --GET--
-PHPSESSID=rfc1867-tests-get
+PHPSESSID=rfc1867-sid-only-cookie-get
 --POST_RAW--
 Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
 -----------------------------20896060251896012921717172737
 Content-Disposition: form-data; name="PHPSESSID"
 
-rfc1867-tests-post
+rfc1867-sid-only-cookie-post
 -----------------------------20896060251896012921717172737
 Content-Disposition: form-data; name="PHP_SESSION_UPLOAD_PROGRESS"
 
@@ -49,7 +49,7 @@ var_dump($_SESSION["upload_progress_" . basename(__FILE__)]);
 session_destroy();
 ?>
 --EXPECTF--
-string(%d) "rfc1867-tests"
+string(%d) "rfc1867-sid-only-cookie"
 bool(true)
 array(2) {
   ["file1"]=>
index 9b0aae9429af34511a128bfdd734e38637a99012..3fd46148d724e2b06579ab6702ac20e1ccc56b0b 100644 (file)
@@ -16,13 +16,13 @@ session.save_handler=files
 --SKIPIF--
 <?php include('skipif.inc'); ?>
 --GET--
-PHPSESSID=rfc1867-tests-get
+PHPSESSID=rfc1867-sid-only-cookie-2-get
 --POST_RAW--
 Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
 -----------------------------20896060251896012921717172737
 Content-Disposition: form-data; name="PHPSESSID"
 
-rfc1867-tests-post
+rfc1867-sid-only-cookie-2-post
 -----------------------------20896060251896012921717172737
 Content-Disposition: form-data; name="PHP_SESSION_UPLOAD_PROGRESS"
 
index a126f9ba386f7136da3e13ef6dc97bf51dd75e81..f22f1534039dcee1619ed529d8b13e2be8fdd7d1 100644 (file)
@@ -21,7 +21,7 @@ Content-Type: multipart/form-data; boundary=---------------------------208960602
 -----------------------------20896060251896012921717172737
 Content-Disposition: form-data; name="PHPSESSID"
 
-rfc1867-tests
+rfc1867-sid-post
 -----------------------------20896060251896012921717172737
 Content-Disposition: form-data; name="PHP_SESSION_UPLOAD_PROGRESS"
 
@@ -45,7 +45,7 @@ var_dump($_SESSION["upload_progress_" . basename(__FILE__)]);
 session_destroy();
 ?>
 --EXPECTF--
-string(%d) "rfc1867-tests"
+string(%d) "rfc1867-sid-post"
 bool(true)
 array(2) {
   ["file1"]=>
index ffdcf6c5eca3fe127e81f0c0090f81222613724a..13c21d3e85af1b0630fb37a2ec9411c256ec3f39 100644 (file)
@@ -17,7 +17,7 @@ ob_start();
 
 echo "*** Testing basic session functionality : variation1 ***\n";
 
-$session_id = 'testid';
+$session_id = 'session-basic1';
 session_id($session_id);
 $path = __DIR__;
 var_dump(session_save_path($path));
@@ -47,20 +47,20 @@ ob_end_flush();
 *** Testing basic session functionality : variation1 ***
 string(0) ""
 *** Without lazy_write ***
-string(6) "testid"
+string(14) "session-basic1"
 bool(true)
 array(1) {
   ["lazy_write"]=>
   bool(false)
 }
 bool(true)
-string(6) "testid"
+string(14) "session-basic1"
 *** With lazy_write ***
-string(6) "testid"
+string(14) "session-basic1"
 bool(true)
 bool(true)
-string(6) "testid"
+string(14) "session-basic1"
 *** Cleanup ***
-string(6) "testid"
+string(14) "session-basic1"
 bool(true)
 bool(true)
index cb9585303ce2ae10320d445e78c2cf4df0c1b060..68230f89b76c9331afd7f83516d2c77ad89cbe37 100644 (file)
@@ -19,7 +19,7 @@ ob_start();
 
 echo "*** Testing basic session functionality : variation2 ***\n";
 
-$session_id = 'testid';
+$session_id = 'session-basic2';
 session_id($session_id);
 $path = __DIR__;
 var_dump(session_save_path($path));
@@ -55,7 +55,7 @@ ob_end_flush();
 *** Testing basic session functionality : variation2 ***
 string(0) ""
 *** Without lazy_write ***
-string(6) "testid"
+string(14) "session-basic2"
 bool(true)
 bool(true)
 bool(true)
index f6ed10e2962afc83ed8e7374f37dd920034e3d83..5f6bd72b82ab5f9cb8b7d622b947e22cee99272d 100644 (file)
@@ -93,7 +93,7 @@ output_reset_rewrite_vars();
 
 echo "*** Test trans sid ***\n";
 ob_start();
-$session_id = 'testid';
+$session_id = 'session-basic3';
 session_id($session_id);
 session_start();
 // Should add session ID to relative URL only for SECURITY
@@ -225,39 +225,39 @@ ob_end_flush();
 *** Testing basic session functionality : variation3 use_trans_sid ***
 *** Test trans sid ***
 
-<a href="/?PHPSESSID=testid">test</a>
-<a href="/path?PHPSESSID=testid">test</a>
-<a href="/path/?PHPSESSID=testid">test</a>
-<a href="/path/?foo=var&PHPSESSID=testid">test</a>
-<a href="../?PHPSESSID=testid">test</a>
-<a href="../path?PHPSESSID=testid">test</a>
-<a href="../path/?PHPSESSID=testid">test</a>
-<a href="../path/?foo=var&PHPSESSID=testid">test</a>
+<a href="/?PHPSESSID=session-basic3">test</a>
+<a href="/path?PHPSESSID=session-basic3">test</a>
+<a href="/path/?PHPSESSID=session-basic3">test</a>
+<a href="/path/?foo=var&PHPSESSID=session-basic3">test</a>
+<a href="../?PHPSESSID=session-basic3">test</a>
+<a href="../path?PHPSESSID=session-basic3">test</a>
+<a href="../path/?PHPSESSID=session-basic3">test</a>
+<a href="../path/?foo=var&PHPSESSID=session-basic3">test</a>
 
-<a href="/?PHPSESSID=testid#bar">test</a>
-<a href="/path/?PHPSESSID=testid#bar">test</a>
-<a href="/path/?foo=var&PHPSESSID=testid#bar">test</a>
-<a href="../?PHPSESSID=testid#bar">test</a>
-<a href="../path/?PHPSESSID=testid#bar">test</a>
-<a href="../path/?foo=var&PHPSESSID=testid#bar">test</a>
+<a href="/?PHPSESSID=session-basic3#bar">test</a>
+<a href="/path/?PHPSESSID=session-basic3#bar">test</a>
+<a href="/path/?foo=var&PHPSESSID=session-basic3#bar">test</a>
+<a href="../?PHPSESSID=session-basic3#bar">test</a>
+<a href="../path/?PHPSESSID=session-basic3#bar">test</a>
+<a href="../path/?foo=var&PHPSESSID=session-basic3#bar">test</a>
 
-<a href="/?foo&PHPSESSID=testid">test</a>
-<a href="/?foo&PHPSESSID=testid#bar">test</a>
-<a href="/?foo=var&PHPSESSID=testid">test</a>
-<a href="/?foo=var&PHPSESSID=testid#bar">test</a>
-<a href="../?foo&PHPSESSID=testid">test</a>
-<a href="../?foo&PHPSESSID=testid#bar">test</a>
-<a href="../?foo=var&PHPSESSID=testid">test</a>
-<a href="../?foo=var&PHPSESSID=testid#bar">test</a>
+<a href="/?foo&PHPSESSID=session-basic3">test</a>
+<a href="/?foo&PHPSESSID=session-basic3#bar">test</a>
+<a href="/?foo=var&PHPSESSID=session-basic3">test</a>
+<a href="/?foo=var&PHPSESSID=session-basic3#bar">test</a>
+<a href="../?foo&PHPSESSID=session-basic3">test</a>
+<a href="../?foo&PHPSESSID=session-basic3#bar">test</a>
+<a href="../?foo=var&PHPSESSID=session-basic3">test</a>
+<a href="../?foo=var&PHPSESSID=session-basic3#bar">test</a>
 
-<a href="file.php?PHPSESSID=testid">test</a>
-<a href="file.php?foo&PHPSESSID=testid">test</a>
-<a href="file.php?foo=var&PHPSESSID=testid">test</a>
-<a href="file.php?foo=var&PHPSESSID=testid#bar">test</a>
-<a href="../file.php?PHPSESSID=testid">test</a>
-<a href="../file.php?foo&PHPSESSID=testid">test</a>
-<a href="../file.php?foo=var&PHPSESSID=testid">test</a>
-<a href="../file.php?foo=var&PHPSESSID=testid#bar">test</a>
+<a href="file.php?PHPSESSID=session-basic3">test</a>
+<a href="file.php?foo&PHPSESSID=session-basic3">test</a>
+<a href="file.php?foo=var&PHPSESSID=session-basic3">test</a>
+<a href="file.php?foo=var&PHPSESSID=session-basic3#bar">test</a>
+<a href="../file.php?PHPSESSID=session-basic3">test</a>
+<a href="../file.php?foo&PHPSESSID=session-basic3">test</a>
+<a href="../file.php?foo=var&PHPSESSID=session-basic3">test</a>
+<a href="../file.php?foo=var&PHPSESSID=session-basic3#bar">test</a>
 
 <a href="http://php.net">test</a>
 <a href="http://php.net/">test</a>
@@ -310,19 +310,19 @@ ob_end_flush();
 <a href="//php.net/some/path/file.php?foo=var">test</a>
 <a href="//php.net/some/path/file.php?foo=var#bar">test</a>
 
-<form action="script.php" method="post"><input type="hidden" name="PHPSESSID" value="testid" />
+<form action="script.php" method="post"><input type="hidden" name="PHPSESSID" value="session-basic3" />
   <input type="text" name="test1"></input>
   <input type="text" name="test2" />
 </form>
-<form action="../script.php" method="post"><input type="hidden" name="PHPSESSID" value="testid" />
+<form action="../script.php" method="post"><input type="hidden" name="PHPSESSID" value="session-basic3" />
   <input type="text" name="test1"></input>
   <input type="text" name="test2" />
 </form>
-<form action="/path/script.php" method="post"><input type="hidden" name="PHPSESSID" value="testid" />
+<form action="/path/script.php" method="post"><input type="hidden" name="PHPSESSID" value="session-basic3" />
   <input type="text" name="test1"></input>
   <input type="text" name="test2" />
 </form>
-<form action="../path/script.php" method="post"><input type="hidden" name="PHPSESSID" value="testid" />
+<form action="../path/script.php" method="post"><input type="hidden" name="PHPSESSID" value="session-basic3" />
   <input type="text" name="test1"></input>
   <input type="text" name="test2" />
 </form>
@@ -341,5 +341,5 @@ ob_end_flush();
 bool(true)
 *** Cleanup ***
 bool(true)
-string(6) "testid"
+string(14) "session-basic3"
 bool(true)
index 50e6cde920d0dc11c2ed0ca41cca44194c2b0c8e..6a7511c3170721501ddaf5100218d990469290aa 100644 (file)
@@ -24,7 +24,7 @@ ini_set('session.trans_sid_hosts','php.net,example.com');
 echo "*** Testing basic session functionality : variation5 use_trans_sid ***\n";
 echo "*** Test trans sid ***\n";
 
-$session_id = 'testid';
+$session_id = 'session-basic5';
 session_id($session_id);
 session_start();
 // Should add session ID to allowed hosts only for SECURITY
@@ -238,116 +238,116 @@ ob_end_flush();
 *** Testing basic session functionality : variation5 use_trans_sid ***
 *** Test trans sid ***
 
-<a href="/?PHPSESSID=testid">test</a>
-<a href="/path?PHPSESSID=testid">test</a>
-<a href="/path/?PHPSESSID=testid">test</a>
-<a href="/path/?foo=var&PHPSESSID=testid">test</a>
-<a href="../?PHPSESSID=testid">test</a>
-<a href="../path?PHPSESSID=testid">test</a>
-<a href="../path/?PHPSESSID=testid">test</a>
-<a href="../path/?foo=var&PHPSESSID=testid">test</a>
-
-<a href="/?PHPSESSID=testid#bar">test</a>
-<a href="/path/?PHPSESSID=testid#bar">test</a>
-<a href="/path/?foo=var&PHPSESSID=testid#bar">test</a>
-<a href="../?PHPSESSID=testid#bar">test</a>
-<a href="../path/?PHPSESSID=testid#bar">test</a>
-<a href="../path/?foo=var&PHPSESSID=testid#bar">test</a>
-
-<a href="/?foo&PHPSESSID=testid">test</a>
-<a href="/?foo&PHPSESSID=testid#bar">test</a>
-<a href="/?foo=var&PHPSESSID=testid">test</a>
-<a href="/?foo=var&PHPSESSID=testid#bar">test</a>
-<a href="../?foo&PHPSESSID=testid">test</a>
-<a href="../?foo&PHPSESSID=testid#bar">test</a>
-<a href="../?foo=var&PHPSESSID=testid">test</a>
-<a href="../?foo=var&PHPSESSID=testid#bar">test</a>
-
-<a href="file.php?PHPSESSID=testid">test</a>
-<a href="file.php?foo&PHPSESSID=testid">test</a>
-<a href="file.php?foo=var&PHPSESSID=testid">test</a>
-<a href="file.php?foo=var&PHPSESSID=testid#bar">test</a>
-<a href="../file.php?PHPSESSID=testid">test</a>
-<a href="../file.php?foo&PHPSESSID=testid">test</a>
-<a href="../file.php?foo=var&PHPSESSID=testid">test</a>
-<a href="../file.php?foo=var&PHPSESSID=testid#bar">test</a>
-
-<a href="http://php.net/?PHPSESSID=testid">test</a>
-<a href="http://php.net/?PHPSESSID=testid">test</a>
-<a href="http://php.net/?PHPSESSID=testid#bar">test</a>
-<a href="http://php.net/?foo&PHPSESSID=testid">test</a>
-<a href="http://php.net/?foo&PHPSESSID=testid#bar">test</a>
-<a href="http://php.net/?foo=var&PHPSESSID=testid">test</a>
-<a href="http://php.net/?foo=var&PHPSESSID=testid#bar">test</a>
-<a href="http://php.net/file.php?PHPSESSID=testid">test</a>
-<a href="http://php.net/file.php?PHPSESSID=testid#bar">test</a>
-<a href="http://php.net/file.php?foo&PHPSESSID=testid">test</a>
-<a href="http://php.net/file.php?foo&PHPSESSID=testid#bar">test</a>
-<a href="http://php.net/file.php?foo=var&PHPSESSID=testid">test</a>
-<a href="http://php.net/file.php?foo=var&PHPSESSID=testid#bar">test</a>
-<a href="http://php.net/some/path/file.php?PHPSESSID=testid">test</a>
-<a href="http://php.net/some/path/file.php?foo&PHPSESSID=testid">test</a>
-<a href="http://php.net/some/path/file.php?foo=var&PHPSESSID=testid">test</a>
-<a href="http://php.net/some/path/file.php?foo=var&PHPSESSID=testid#bar">test</a>
-
-<a href="https://php.net/?PHPSESSID=testid">test</a>
-<a href="https://php.net/?PHPSESSID=testid">test</a>
-<a href="https://php.net/?foo=var&PHPSESSID=testid#bar">test</a>
-<a href="https://php.net/file.php?PHPSESSID=testid">test</a>
-<a href="https://php.net/file.php?foo=var&PHPSESSID=testid#bar">test</a>
-<a href="https://php.net/some/path/file.php?PHPSESSID=testid">test</a>
-<a href="https://php.net/some/path/file.php?foo=var&PHPSESSID=testid#bar">test</a>
-<a href="https://php.net:8443/?PHPSESSID=testid">test</a>
-<a href="https://php.net:8443/?PHPSESSID=testid">test</a>
-<a href="https://php.net:8443/?foo=var&PHPSESSID=testid#bar">test</a>
-<a href="https://php.net:8443/file.php?PHPSESSID=testid">test</a>
-<a href="https://php.net:8443/file.php?foo=var&PHPSESSID=testid#bar">test</a>
-<a href="https://php.net:8443/some/path/file.php?PHPSESSID=testid">test</a>
-<a href="https://php.net:8443/some/path/file.php?foo=var&PHPSESSID=testid#bar">test</a>
-
-<a href="//php.net/?PHPSESSID=testid">test</a>
-<a href="//php.net/?PHPSESSID=testid">test</a>
-<a href="//php.net/?PHPSESSID=testid#bar">test</a>
-<a href="//php.net/?foo&PHPSESSID=testid">test</a>
-<a href="//php.net/?foo&PHPSESSID=testid#bar">test</a>
-<a href="//php.net/?foo=var&PHPSESSID=testid">test</a>
-<a href="//php.net/?foo=var&PHPSESSID=testid#bar">test</a>
-<a href="//php.net/file.php?PHPSESSID=testid">test</a>
-<a href="//php.net/file.php?PHPSESSID=testid#bar">test</a>
-<a href="//php.net/file.php?foo&PHPSESSID=testid">test</a>
-<a href="//php.net/file.php?foo&PHPSESSID=testid#bar">test</a>
-<a href="//php.net/file.php?foo=var&PHPSESSID=testid">test</a>
-<a href="//php.net/file.php?foo=var&PHPSESSID=testid#bar">test</a>
-<a href="//php.net/some/path/file.php?PHPSESSID=testid">test</a>
-<a href="//php.net/some/path/file.php?foo&PHPSESSID=testid">test</a>
-<a href="//php.net/some/path/file.php?foo=var&PHPSESSID=testid">test</a>
-<a href="//php.net/some/path/file.php?foo=var&PHPSESSID=testid#bar">test</a>
-
-<form action="script.php" method="post"><input type="hidden" name="PHPSESSID" value="testid" />
+<a href="/?PHPSESSID=session-basic5">test</a>
+<a href="/path?PHPSESSID=session-basic5">test</a>
+<a href="/path/?PHPSESSID=session-basic5">test</a>
+<a href="/path/?foo=var&PHPSESSID=session-basic5">test</a>
+<a href="../?PHPSESSID=session-basic5">test</a>
+<a href="../path?PHPSESSID=session-basic5">test</a>
+<a href="../path/?PHPSESSID=session-basic5">test</a>
+<a href="../path/?foo=var&PHPSESSID=session-basic5">test</a>
+
+<a href="/?PHPSESSID=session-basic5#bar">test</a>
+<a href="/path/?PHPSESSID=session-basic5#bar">test</a>
+<a href="/path/?foo=var&PHPSESSID=session-basic5#bar">test</a>
+<a href="../?PHPSESSID=session-basic5#bar">test</a>
+<a href="../path/?PHPSESSID=session-basic5#bar">test</a>
+<a href="../path/?foo=var&PHPSESSID=session-basic5#bar">test</a>
+
+<a href="/?foo&PHPSESSID=session-basic5">test</a>
+<a href="/?foo&PHPSESSID=session-basic5#bar">test</a>
+<a href="/?foo=var&PHPSESSID=session-basic5">test</a>
+<a href="/?foo=var&PHPSESSID=session-basic5#bar">test</a>
+<a href="../?foo&PHPSESSID=session-basic5">test</a>
+<a href="../?foo&PHPSESSID=session-basic5#bar">test</a>
+<a href="../?foo=var&PHPSESSID=session-basic5">test</a>
+<a href="../?foo=var&PHPSESSID=session-basic5#bar">test</a>
+
+<a href="file.php?PHPSESSID=session-basic5">test</a>
+<a href="file.php?foo&PHPSESSID=session-basic5">test</a>
+<a href="file.php?foo=var&PHPSESSID=session-basic5">test</a>
+<a href="file.php?foo=var&PHPSESSID=session-basic5#bar">test</a>
+<a href="../file.php?PHPSESSID=session-basic5">test</a>
+<a href="../file.php?foo&PHPSESSID=session-basic5">test</a>
+<a href="../file.php?foo=var&PHPSESSID=session-basic5">test</a>
+<a href="../file.php?foo=var&PHPSESSID=session-basic5#bar">test</a>
+
+<a href="http://php.net/?PHPSESSID=session-basic5">test</a>
+<a href="http://php.net/?PHPSESSID=session-basic5">test</a>
+<a href="http://php.net/?PHPSESSID=session-basic5#bar">test</a>
+<a href="http://php.net/?foo&PHPSESSID=session-basic5">test</a>
+<a href="http://php.net/?foo&PHPSESSID=session-basic5#bar">test</a>
+<a href="http://php.net/?foo=var&PHPSESSID=session-basic5">test</a>
+<a href="http://php.net/?foo=var&PHPSESSID=session-basic5#bar">test</a>
+<a href="http://php.net/file.php?PHPSESSID=session-basic5">test</a>
+<a href="http://php.net/file.php?PHPSESSID=session-basic5#bar">test</a>
+<a href="http://php.net/file.php?foo&PHPSESSID=session-basic5">test</a>
+<a href="http://php.net/file.php?foo&PHPSESSID=session-basic5#bar">test</a>
+<a href="http://php.net/file.php?foo=var&PHPSESSID=session-basic5">test</a>
+<a href="http://php.net/file.php?foo=var&PHPSESSID=session-basic5#bar">test</a>
+<a href="http://php.net/some/path/file.php?PHPSESSID=session-basic5">test</a>
+<a href="http://php.net/some/path/file.php?foo&PHPSESSID=session-basic5">test</a>
+<a href="http://php.net/some/path/file.php?foo=var&PHPSESSID=session-basic5">test</a>
+<a href="http://php.net/some/path/file.php?foo=var&PHPSESSID=session-basic5#bar">test</a>
+
+<a href="https://php.net/?PHPSESSID=session-basic5">test</a>
+<a href="https://php.net/?PHPSESSID=session-basic5">test</a>
+<a href="https://php.net/?foo=var&PHPSESSID=session-basic5#bar">test</a>
+<a href="https://php.net/file.php?PHPSESSID=session-basic5">test</a>
+<a href="https://php.net/file.php?foo=var&PHPSESSID=session-basic5#bar">test</a>
+<a href="https://php.net/some/path/file.php?PHPSESSID=session-basic5">test</a>
+<a href="https://php.net/some/path/file.php?foo=var&PHPSESSID=session-basic5#bar">test</a>
+<a href="https://php.net:8443/?PHPSESSID=session-basic5">test</a>
+<a href="https://php.net:8443/?PHPSESSID=session-basic5">test</a>
+<a href="https://php.net:8443/?foo=var&PHPSESSID=session-basic5#bar">test</a>
+<a href="https://php.net:8443/file.php?PHPSESSID=session-basic5">test</a>
+<a href="https://php.net:8443/file.php?foo=var&PHPSESSID=session-basic5#bar">test</a>
+<a href="https://php.net:8443/some/path/file.php?PHPSESSID=session-basic5">test</a>
+<a href="https://php.net:8443/some/path/file.php?foo=var&PHPSESSID=session-basic5#bar">test</a>
+
+<a href="//php.net/?PHPSESSID=session-basic5">test</a>
+<a href="//php.net/?PHPSESSID=session-basic5">test</a>
+<a href="//php.net/?PHPSESSID=session-basic5#bar">test</a>
+<a href="//php.net/?foo&PHPSESSID=session-basic5">test</a>
+<a href="//php.net/?foo&PHPSESSID=session-basic5#bar">test</a>
+<a href="//php.net/?foo=var&PHPSESSID=session-basic5">test</a>
+<a href="//php.net/?foo=var&PHPSESSID=session-basic5#bar">test</a>
+<a href="//php.net/file.php?PHPSESSID=session-basic5">test</a>
+<a href="//php.net/file.php?PHPSESSID=session-basic5#bar">test</a>
+<a href="//php.net/file.php?foo&PHPSESSID=session-basic5">test</a>
+<a href="//php.net/file.php?foo&PHPSESSID=session-basic5#bar">test</a>
+<a href="//php.net/file.php?foo=var&PHPSESSID=session-basic5">test</a>
+<a href="//php.net/file.php?foo=var&PHPSESSID=session-basic5#bar">test</a>
+<a href="//php.net/some/path/file.php?PHPSESSID=session-basic5">test</a>
+<a href="//php.net/some/path/file.php?foo&PHPSESSID=session-basic5">test</a>
+<a href="//php.net/some/path/file.php?foo=var&PHPSESSID=session-basic5">test</a>
+<a href="//php.net/some/path/file.php?foo=var&PHPSESSID=session-basic5#bar">test</a>
+
+<form action="script.php" method="post"><input type="hidden" name="PHPSESSID" value="session-basic5" />
   <input type="text" name="test1"></input>
   <input type="text" name="test2" />
 </form>
-<form action="../script.php" method="post"><input type="hidden" name="PHPSESSID" value="testid" />r
+<form action="../script.php" method="post"><input type="hidden" name="PHPSESSID" value="session-basic5" />r
   <input type="text" name="test1"></input>
   <input type="text" name="test2" />
 </form>
-<form action="/path/script.php" method="post"><input type="hidden" name="PHPSESSID" value="testid" />
+<form action="/path/script.php" method="post"><input type="hidden" name="PHPSESSID" value="session-basic5" />
   <input type="text" name="test1"></input>
   <input type="text" name="test2" />
 </form>
-<form action="../path/script.php" method="post"><input type="hidden" name="PHPSESSID" value="testid" />
+<form action="../path/script.php" method="post"><input type="hidden" name="PHPSESSID" value="session-basic5" />
   <input type="text" name="test1"></input>
   <input type="text" name="test2" />
 </form>
-<form method="post" action="http://php.net/script.php"><input type="hidden" name="PHPSESSID" value="testid" />
+<form method="post" action="http://php.net/script.php"><input type="hidden" name="PHPSESSID" value="session-basic5" />
   <input type="text" name="test1"></input>
   <input type="text" name="test2" />
 </form>
-<form method="post" action="https://php.net/script.php"><input type="hidden" name="PHPSESSID" value="testid" />
+<form method="post" action="https://php.net/script.php"><input type="hidden" name="PHPSESSID" value="session-basic5" />
   <input type="text" name="test1"></input>
   <input type="text" name="test2" />
 </form>
-<form method="post" action="//php.net/script.php"><input type="hidden" name="PHPSESSID" value="testid" />
+<form method="post" action="//php.net/script.php"><input type="hidden" name="PHPSESSID" value="session-basic5" />
   <input type="text" name="test1"></input>
   <input type="text" name="test2" />
 </form>
@@ -436,5 +436,5 @@ ob_end_flush();
 bool(true)
 *** Cleanup ***
 bool(true)
-string(6) "testid"
+string(14) "session-basic5"
 bool(true)
index 2633f543af5d3d600ec08741381df7a6781279cb..b0c3ad4a9432d51758de46a18e043635573a237e 100644 (file)
@@ -12,7 +12,7 @@ ob_start();
 echo "*** Testing session_commit() : variation ***\n";
 
 var_dump(ini_get('session.use_strict_mode'));
-var_dump(session_id("test"));
+var_dump(session_id("session-commit-variation4"));
 var_dump(session_start());
 var_dump(session_id());
 var_dump(session_commit());
@@ -38,18 +38,18 @@ ob_end_flush();
 string(1) "0"
 string(0) ""
 bool(true)
-string(4) "test"
+string(25) "session-commit-variation4"
 bool(true)
-string(4) "test"
+string(25) "session-commit-variation4"
 bool(true)
 string(1) "0"
-string(4) "test"
+string(25) "session-commit-variation4"
 bool(true)
-string(4) "test"
+string(25) "session-commit-variation4"
 bool(true)
-string(4) "test"
+string(25) "session-commit-variation4"
 bool(true)
-string(4) "test"
+string(25) "session-commit-variation4"
 bool(true)
 bool(true)
 string(1) "0"
index 9b845151a899fe9fee69556e1d8657d8ad8cfdfc..7e58ddc6c48e9f715a14bfa6dda961afbf452868 100644 (file)
@@ -15,6 +15,8 @@ echo "*** Testing session_module_name() : variation ***\n";
 
 require_once "save_handler.inc";
 $path = __DIR__;
+$path = __DIR__ . '/session_module_name_variation4';
+@mkdir($path);
 session_save_path($path);
 session_module_name("files");
 
@@ -35,6 +37,7 @@ var_dump($_SESSION);
 var_dump(session_destroy());
 
 ob_end_flush();
+rmdir($path);
 ?>
 --EXPECT--
 *** Testing session_module_name() : variation ***
index 8b3df522625690b8fa3f09a4a670a3ca4cbae6b0..ec22e92051fa5ee99f7deb0c53c59178db8d4108 100644 (file)
@@ -14,7 +14,7 @@ ob_start();
 
 echo "*** Testing session_save_path() : variation ***\n";
 $initdir = __DIR__;
-$sessions = ($initdir."/sessions");
+$sessions = ($initdir."/session_save_path_variation4");
 
 chdir($initdir);
 
@@ -38,7 +38,7 @@ ob_end_flush();
 --CLEAN--
 <?php
 $initdir = __DIR__;
-$sessions = ($initdir."/sessions");
+$sessions = ($initdir."/session_save_path_variation4");
 var_dump(rmdir($sessions));
 ?>
 --EXPECTF--
index 446a472ab46908520acb30badb23f6c6299bae09..3977d0deab4093f303e2a6c3d0a141c2f7715f80 100644 (file)
@@ -15,7 +15,7 @@ session.name=PHPSESSID
 ob_start();
 echo "*** Testing session_save_path() : variation ***\n";
 $directory = __DIR__;
-$sessions = ($directory."/sessions");
+$sessions = ($directory."/session_save_path_variation5");
 
 chdir($directory);
 ini_set('open_basedir', '.');
@@ -36,7 +36,7 @@ ob_end_flush();
 --CLEAN--
 <?php
 $directory = __DIR__;
-$sessions = ($directory."/sessions");
+$sessions = ($directory."/session_save_path_variation5");
 var_dump(rmdir($sessions));
 ?>
 --EXPECTF--
index 459f03c825a6b1892c69955a912913986eba05c3..23865aa512bf666907e988cdb15f60dc47a0fe2d 100644 (file)
@@ -20,7 +20,8 @@ var_dump(session_module_name(FALSE));
 var_dump(session_module_name("blah"));
 var_dump(session_module_name("foo"));
 
-$path = __DIR__;
+$path = __DIR__ . '/session_set_save_handler_basic';
+@mkdir($path);
 session_save_path($path);
 session_set_save_handler("open", "close", "read", "write", "destroy", "gc");
 
@@ -55,6 +56,7 @@ session_start();
 session_destroy();
 
 ob_end_flush();
+rmdir($path);
 ?>
 --EXPECTF--
 *** Testing session_set_save_handler() : basic functionality ***
index 224846466e1af8e17e8a8f4165be0d77facb4fe5..a4b7d4df6ee5456a08281bbe6b18c817bba0a0bd 100644 (file)
@@ -10,13 +10,15 @@ ob_start();
 echo "*** Testing session_set_save_handler() : variation ***\n";
 
 require_once "save_handler.inc";
-$path = __DIR__;
+$path = __DIR__ . '/session_set_save_handler_variation2';
+@mkdir($path);
 session_save_path($path);
 var_dump(session_start());
 var_dump(session_set_save_handler("open", "close", "read", "write", "destroy", "gc"));
 var_dump(session_destroy());
 
 ob_end_flush();
+rmdir($path);
 ?>
 --EXPECTF--
 *** Testing session_set_save_handler() : variation ***
index be825cbe7234f24c4f7ec0f5f7a932f64dbc677b..cc0ae1fb23443a4261843b3193e7bff8183cc581 100644 (file)
@@ -12,13 +12,15 @@ ob_start();
 echo "*** Testing session_set_save_handler() : variation ***\n";
 
 require_once "save_handler.inc";
-$path = __DIR__;
+$path = __DIR__ . '/session_set_save_handler_variation3';
+@mkdir($path);
 var_dump(session_status());
 session_save_path($path);
 var_dump(session_set_save_handler("open", "close", "read", "write", "destroy", "gc"));
 var_dump(session_destroy());
-
 ob_end_flush();
+
+rmdir($path);
 ?>
 --EXPECTF--
 *** Testing session_set_save_handler() : variation ***
index e1b61f29a75c0b4a129a870adc0b3c001161dcfe..9930f7aaf2c6cedbb7f9bb910776ba152176c909 100644 (file)
@@ -23,7 +23,8 @@ function noisy_gc($maxlifetime) {
 }
 
 require_once "save_handler.inc";
-$path = __DIR__;
+$path = __DIR__ . '/session_set_save_handler_variation4';
+@mkdir($path);
 session_save_path($path);
 session_set_save_handler("open", "close", "read", "write", "destroy", "noisy_gc");
 
@@ -42,13 +43,14 @@ var_dump($_SESSION);
 var_dump(session_destroy());
 
 ob_end_flush();
+rmdir($path);
 ?>
 --EXPECTF--
 *** Testing session_set_save_handler() : variation ***
 Open [%s,PHPSESSID]
 Read [%s,%s]
 GC [0]
-2 deleted
+1 deleted
 array(3) {
   ["Blah"]=>
   string(12) "Hello World!"
index 9860dcc04aa82c769b95c9afa2f6dbee8571be78..7cf7814259039a9040bcd239ef7b8e27bfbb43c7 100644 (file)
@@ -24,7 +24,8 @@ function noisy_gc($maxlifetime) {
 echo "*** Testing session_set_save_handler() : variation ***\n";
 
 require_once "save_handler.inc";
-$path = __DIR__;
+$path = __DIR__ . '/session_set_save_handler_variation5';
+@mkdir($path);
 var_dump(session_save_path($path));
 
 echo "*** Without lazy_write ***\n";
@@ -48,6 +49,7 @@ var_dump(session_start());
 var_dump(session_destroy());
 
 ob_end_flush();
+rmdir($path);
 ?>
 --EXPECTF--
 *** Testing session_set_save_handler() : variation ***
index d65c0dc1c83bbb7a9491ecb00d47cdcb7d30b471..11af07f6038aeddd1d90360b77346385b649ad07 100644 (file)
@@ -17,7 +17,8 @@ ob_start();
 echo "*** Testing session_set_save_handler() : test write short circuit ***\n";
 
 require_once "save_handler.inc";
-$path = __DIR__;
+$path = __DIR__ . '/session_set_save_handler_variation6';
+@mkdir($path);
 session_save_path($path);
 session_set_save_handler("open", "close", "read", "write", "destroy", "gc", "create_sid", "validate_sid", "update");
 
@@ -53,6 +54,7 @@ session_start();
 session_destroy();
 
 ob_end_flush();
+rmdir($path);
 ?>
 --EXPECTF--
 *** Testing session_set_save_handler() : test write short circuit ***