[PHP-CVS] cvs: php-src(PHP_5_3) /ext/session/tests session_name_error.phpt session_save_path_error.phpt

2008-12-02 Thread Ant Phillips
ant Tue Dec  2 10:20:56 2008 UTC

  Modified files:  (Branch: PHP_5_3)
/php-src/ext/session/tests  session_save_path_error.phpt 
session_name_error.phpt 
  Log:
  Fix broken tests (thanks to Johannes for spotting these).
  
http://cvs.php.net/viewvc.cgi/php-src/ext/session/tests/session_save_path_error.phpt?r1=1.1.4.5r2=1.1.4.6diff_format=u
Index: php-src/ext/session/tests/session_save_path_error.phpt
diff -u php-src/ext/session/tests/session_save_path_error.phpt:1.1.4.5 
php-src/ext/session/tests/session_save_path_error.phpt:1.1.4.6
--- php-src/ext/session/tests/session_save_path_error.phpt:1.1.4.5  Thu Nov 
27 13:50:28 2008
+++ php-src/ext/session/tests/session_save_path_error.phpt  Tue Dec  2 
10:20:56 2008
@@ -171,6 +171,8 @@
 string(0) 
 
 -- Iteration 24 --
-string(0) 
+
+Warning: session_save_path() expects parameter 1 to be string, resource given 
in %s on line %d
+NULL
 Done
 
http://cvs.php.net/viewvc.cgi/php-src/ext/session/tests/session_name_error.phpt?r1=1.1.4.6r2=1.1.4.7diff_format=u
Index: php-src/ext/session/tests/session_name_error.phpt
diff -u php-src/ext/session/tests/session_name_error.phpt:1.1.4.6 
php-src/ext/session/tests/session_name_error.phpt:1.1.4.7
--- php-src/ext/session/tests/session_name_error.phpt:1.1.4.6   Thu Nov 27 
13:50:28 2008
+++ php-src/ext/session/tests/session_name_error.phpt   Tue Dec  2 10:20:56 2008
@@ -167,6 +167,8 @@
 string(0) 
 
 -- Iteration 24 --
-string(0) 
+
+Warning: session_name() expects parameter 1 to be string, resource given in %s 
on line %d
+NULL
 Done
 



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_3) /ext/session/tests session_name_error.phpt session_save_path_error.phpt session_save_path_variation4.phpt

2008-11-27 Thread Ant Phillips
ant Thu Nov 27 13:50:28 2008 UTC

  Modified files:  (Branch: PHP_5_3)
/php-src/ext/session/tests  session_save_path_error.phpt 
session_save_path_variation4.phpt 
session_name_error.phpt 
  Log:
  Latest and greatest versions of these session tests - checked on 5.3 snap on 
Windows, Linux and Linux 64 bit.
  
http://cvs.php.net/viewvc.cgi/php-src/ext/session/tests/session_save_path_error.phpt?r1=1.1.4.4r2=1.1.4.5diff_format=u
Index: php-src/ext/session/tests/session_save_path_error.phpt
diff -u php-src/ext/session/tests/session_save_path_error.phpt:1.1.4.4 
php-src/ext/session/tests/session_save_path_error.phpt:1.1.4.5
--- php-src/ext/session/tests/session_save_path_error.phpt:1.1.4.4  Sat Jun 
21 15:27:34 2008
+++ php-src/ext/session/tests/session_save_path_error.phpt  Thu Nov 27 
13:50:28 2008
@@ -171,8 +171,6 @@
 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
 
http://cvs.php.net/viewvc.cgi/php-src/ext/session/tests/session_save_path_variation4.phpt?r1=1.1.2.3r2=1.1.2.4diff_format=u
Index: php-src/ext/session/tests/session_save_path_variation4.phpt
diff -u php-src/ext/session/tests/session_save_path_variation4.phpt:1.1.2.3 
php-src/ext/session/tests/session_save_path_variation4.phpt:1.1.2.4
--- php-src/ext/session/tests/session_save_path_variation4.phpt:1.1.2.3 Wed Apr 
30 15:20:18 2008
+++ php-src/ext/session/tests/session_save_path_variation4.phpt Thu Nov 27 
13:50:28 2008
@@ -22,10 +22,10 @@
  */
 
 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 @@
 
 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 @@
 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 ***
http://cvs.php.net/viewvc.cgi/php-src/ext/session/tests/session_name_error.phpt?r1=1.1.4.5r2=1.1.4.6diff_format=u
Index: php-src/ext/session/tests/session_name_error.phpt
diff -u php-src/ext/session/tests/session_name_error.phpt:1.1.4.5 
php-src/ext/session/tests/session_name_error.phpt:1.1.4.6
--- php-src/ext/session/tests/session_name_error.phpt:1.1.4.5   Sun Jun 22 
19:16:44 2008
+++ php-src/ext/session/tests/session_name_error.phpt   Thu Nov 27 13:50:28 2008
@@ -167,8 +167,6 @@
 string(0) 
 
 -- Iteration 24 --
-
-Warning: session_name() expects parameter 1 to be string, resource given in %s 
on line %d
-NULL
+string(0) 
 Done
 



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php