pajoye          Thu Aug 21 10:30:50 2008 UTC

  Modified files:              (Branch: PHP_5_3)
    /php-src/ext/standard/tests/general_functions       bug44394_2.phpt 
  Log:
  - MFH: 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.1.2.4&r2=1.1.2.5&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.1.2.4 
php-src/ext/standard/tests/general_functions/bug44394_2.phpt:1.1.2.5
--- php-src/ext/standard/tests/general_functions/bug44394_2.phpt:1.1.2.4        
Thu Aug 14 23:29:13 2008
+++ php-src/ext/standard/tests/general_functions/bug44394_2.phpt        Thu Aug 
21 10:30:49 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