]> granicus.if.org Git - php/commitdiff
Latest and greatest versions of these session tests - checked on 5.3 snap on Windows...
authorAnt Phillips <ant@php.net>
Thu, 27 Nov 2008 13:50:28 +0000 (13:50 +0000)
committerAnt Phillips <ant@php.net>
Thu, 27 Nov 2008 13:50:28 +0000 (13:50 +0000)
ext/session/tests/session_name_error.phpt
ext/session/tests/session_save_path_error.phpt
ext/session/tests/session_save_path_variation4.phpt

index 2ed10d92a2bf677383647a8de9b9ba70e17c30b0..a2dc01b512750f2f60a100ea199c56efab41dde1 100644 (file)
@@ -167,8 +167,6 @@ string(12) "Hello World!"
 string(0) ""
 
 -- Iteration 24 --
-
-Warning: session_name() expects parameter 1 to be string, resource given in %s on line %d
-NULL
+string(0) ""
 Done
 
index 815feee6ba55e9b342653dcadb97523547f91d3c..b58e7313348f2ad21e80a3d3ddec4aadf5025d03 100644 (file)
@@ -171,8 +171,6 @@ string(12) "Hello World!"
 string(0) ""
 
 -- Iteration 24 --
-
-Warning: session_save_path() expects parameter 1 to be string, resource given in %s on line %d
-NULL
+string(0) ""
 Done
 
index 453645d314514f1a6356d39856270d4a98dab0bd..6ea725cd896d82b6b8ea7fa0432bade2d8d4c988 100644 (file)
@@ -22,10 +22,10 @@ ob_start();
  */
 
 echo "*** Testing session_save_path() : variation ***\n";
-$directory = dirname(__FILE__);
-$sessions = ($directory."/sessions");
+$initdir = getcwd();
+$sessions = ($initdir."/sessions");
 
-chdir($directory);
+chdir($initdir);
 
 // Delete the existing directory
 if (file_exists($sessions) === TRUE) {
@@ -34,7 +34,7 @@ if (file_exists($sessions) === TRUE) {
 
 var_dump(mkdir($sessions));
 var_dump(chdir($sessions));
-ini_set("session.save_path", $directory);
+ini_set("session.save_path", $initdir);
 var_dump(session_save_path());
 var_dump(session_start());
 var_dump(session_save_path());
@@ -46,8 +46,8 @@ echo "Done";
 ob_end_flush();
 ?>
 --CLEAN--
-$directory = dirname(__FILE__);
-$sessions = ($directory."/sessions");
+$initdir = getcwd();
+$sessions = ($initdir."/sessions");
 var_dump(rmdir($sessions));
 --EXPECTF--
 *** Testing session_save_path() : variation ***