sniper          Mon Jun 20 09:37:33 2005 EDT

  Modified files:              
    /php-src/ext/session        mod_files.sh 
  Log:
  - Added session.hash_bits_per_character support. (3rd param)
    (Changes by: waltzer at autumnweave dot com)
  
  
http://cvs.php.net/diff.php/php-src/ext/session/mod_files.sh?r1=1.1&r2=1.2&ty=u
Index: php-src/ext/session/mod_files.sh
diff -u php-src/ext/session/mod_files.sh:1.1 
php-src/ext/session/mod_files.sh:1.2
--- php-src/ext/session/mod_files.sh:1.1        Sun Aug 22 10:14:46 1999
+++ php-src/ext/session/mod_files.sh    Mon Jun 20 09:37:32 2005
@@ -9,8 +9,16 @@
        exit 0
 fi
 
-for i in a b c d e f 0 1 2 3 4 5 6 7 8 9; do
+hash_chars="0 1 2 3 4 5 6 7 8 9 a b c d e f"
+if test "$3" -a "$3" -ge "5"; then
+  hash_chars="$hash_chars g h i j k l m n o p q r s t u v"
+  if test "$3" -eq "6"; then
+    hash_chars="$hash_chars w x y z A B C D E F G H I J K L M N O P Q R S T U 
V W X Y Z - ,"
+  fi
+fi
+
+for i in $hash_chars; do
        newpath="$1/$i"
        mkdir $newpath || exit 1
-       sh $0 $newpath `expr $2 - 1`
+       sh $0 $newpath `expr $2 - 1 $3`
 done

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

Reply via email to