Remove forgotten obsolete session INI directives (#14238)

The session.hash_function and session.hash_bits_per_character INI
directives have been removed in PHP 7.1:
3467526a65
This commit is contained in:
Peter Kokot 2024-05-15 17:01:15 +02:00 committed by GitHub
parent 5ef1824ebc
commit c1d71cfeea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 3 additions and 34 deletions

View file

@ -6,11 +6,11 @@ IF _%1_==_AUTO_ (
)
IF _%2_==__ (
ECHO Usage %0 ^<basedir^> ^<depth^> ^[^hash_bits^]
ECHO Usage %0 ^<basedir^> ^<depth^> ^[^bits^]
ECHO.
ECHO Where ^<basedir^> is the session directory
ECHO ^<depth^> is the number of levels defined in session.save_path
ECHO ^[hash_bits^] is the number of bits defined in session.hash_bits_per_character
ECHO ^[bits^] is the number of bits defined in session.sid_bits_per_character
EXIT /B 1
)
@ -53,5 +53,5 @@ ECHO ERROR: Invalid depth : %2
EXIT /B 0
:BitsError
ECHO ERROR: Invalid hash_bits : %3
ECHO ERROR: Invalid bits : %3
EXIT /B 0

View file

@ -1,24 +0,0 @@
--TEST--
setting hash_function to sha512 and hash_bits_per_character > 4 should not crash
--EXTENSIONS--
session
--SKIPIF--
<?php include('skipif.inc'); ?>
--INI--
session.use_cookies=0
session.cache_limiter=
session.serialize_handler=php
session.save_handler=files
session.hash_function=sha512
session.hash_bits_per_character=5
--FILE--
<?php
error_reporting(E_ALL);
session_start();
session_regenerate_id(TRUE);
print "I live\n";
?>
--EXPECT--
I live

View file

@ -3,7 +3,6 @@ Test basic function : variation2
--INI--
session.use_strict_mode=1
session.save_handler=files
session.hash_bits_per_character=4
session.gc_probability=1
session.gc_divisor=1000
session.gc_maxlifetime=300

View file

@ -5,8 +5,6 @@ session.use_strict_mode=0
session.use_only_cookies=0
session.use_trans_sid=1
session.save_handler=files
session.hash_bits_per_character=4
session.hash_function=0
session.gc_probability=1
session.gc_divisor=1000
session.gc_maxlifetime=300

View file

@ -5,8 +5,6 @@ session.use_strict_mode=0
session.use_only_cookies=0
session.use_trans_sid=1
session.save_handler=files
session.hash_bits_per_character=4
session.hash_function=0
session.gc_probability=1
session.gc_divisor=1000
session.gc_maxlifetime=300

View file

@ -5,8 +5,6 @@ session.use_strict_mode=0
session.use_only_cookies=0
session.use_trans_sid=1
session.save_handler=files
session.hash_bits_per_character=4
session.hash_function=0
session.gc_probability=1
session.gc_divisor=1000
session.gc_maxlifetime=300