pajoye          Thu Aug 21 10:30:34 2008 UTC

  Modified files:              
    /php-src/ext/standard/tests/general_functions       bug44394_2.phpt 
  Log:
  - make it portable and clean on in the clean section, session file may still 
be open (can't be deleted)
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/general_functions/bug44394_2.phpt?r1=1.5&r2=1.6&diff_format=u
Index: php-src/ext/standard/tests/general_functions/bug44394_2.phpt
diff -u php-src/ext/standard/tests/general_functions/bug44394_2.phpt:1.5 
php-src/ext/standard/tests/general_functions/bug44394_2.phpt:1.6
--- php-src/ext/standard/tests/general_functions/bug44394_2.phpt:1.5    Thu Aug 
14 23:28:47 2008
+++ php-src/ext/standard/tests/general_functions/bug44394_2.phpt        Thu Aug 
21 10:30:34 2008
@@ -8,7 +8,7 @@
 <?php
 
 ini_set('session.use_trans_sid', 1);
-session_save_path(dirname(__FILE__));
+session_save_path(__DIR__);
 session_start();
 
 ob_start();
@@ -23,8 +23,13 @@
 
 ob_end_clean();
 
-unlink(dirname(__FILE__).'/sess_'.session_id());
-
+?>
+--CLEAN--
+<?php
+unlink(__DIR__ . '/sess_'.session_id());
+foreach (glob(__DIR__ . '/sess_*') as $filename) {
+  unlink($filename);
+}
 ?>
 --EXPECTF--
 <a href='a?q=1&PHPSESSID=%s&a=b'>asd</a>



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

Reply via email to