mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
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:
parent
5ef1824ebc
commit
c1d71cfeea
6 changed files with 3 additions and 34 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue