-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Deprecate disabling use_only_cookies #13578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
kamil-tekiela
merged 13 commits into
php:master
from
kamil-tekiela:Deprecate-GET/SET-session-SID
Aug 24, 2024
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
ef56c22
Deprecate disabling use_only_cookies
kamil-tekiela 6faf1a7
Add a new test to check new deprecations
kamil-tekiela b7ac027
Deprecate SID
kamil-tekiela 8f38971
Update test cases
kamil-tekiela 76bd982
Fix failing windows tests
kamil-tekiela a7530e7
Review comments
kamil-tekiela af8c854
Remove --disable-debug-pack
kamil-tekiela c457fac
Revert "Remove --disable-debug-pack"
kamil-tekiela 1d850e7
Revert "Fix failing windows tests"
kamil-tekiela ad35e68
Add display_startup_errors=0
kamil-tekiela 1438429
Add "session.configuration"
kamil-tekiela 5ba6f11
Add display_startup_errors=0
kamil-tekiela 1269989
Apply suggestions from code review
kamil-tekiela File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
--TEST-- | ||
Deprecated GET/POST sessions | ||
--EXTENSIONS-- | ||
session | ||
--SKIPIF-- | ||
<?php include 'skipif.inc'; ?> | ||
--INI-- | ||
session.use_cookies=0 | ||
session.use_only_cookies=1 | ||
session.use_trans_sid=0 | ||
--FILE-- | ||
<?php | ||
|
||
ob_start(); | ||
|
||
// Expecting deprecation here | ||
ini_set("session.use_only_cookies", "0"); | ||
// Expecting no deprecation | ||
ini_set("session.use_only_cookies", "1"); | ||
|
||
// Expecting deprecation here | ||
ini_set("session.use_trans_sid", "1"); | ||
// Expecting no deprecation | ||
ini_set("session.use_trans_sid", "0"); | ||
|
||
// Expecting deprecation here | ||
ini_set("session.trans_sid_tags", "a=href"); | ||
// Expecting no deprecation (default value) | ||
ini_set("session.trans_sid_tags", "a=href,area=href,frame=src,form="); | ||
|
||
// Expecting deprecation here | ||
ini_set("session.trans_sid_hosts", "php.net"); | ||
// Expecting no deprecation (default value) | ||
ini_set("session.trans_sid_hosts", ""); | ||
|
||
// Expecting deprecation here | ||
ini_set("session.referer_check", "php.net"); | ||
// Expecting no deprecation (default value) | ||
ini_set("session.referer_check", ""); | ||
|
||
// Setting deprecated values directly in session_start() | ||
// Expecting deprecation here | ||
session_start([ 'use_cookies' => '0', 'use_only_cookies' => '0', 'use_trans_sid' => '1']); | ||
|
||
echo SID; | ||
|
||
?> | ||
--EXPECTF-- | ||
Deprecated: ini_set(): Disabling session.use_only_cookies INI setting is deprecated in %s on line 6 | ||
|
||
Deprecated: ini_set(): Enabling session.use_trans_sid INI setting is deprecated in %s on line 11 | ||
|
||
Deprecated: ini_set(): Usage of session.trans_sid_tags INI setting is deprecated in %s on line 16 | ||
|
||
Deprecated: ini_set(): Usage of session.trans_sid_hosts INI setting is deprecated in %s on line 21 | ||
|
||
Deprecated: ini_set(): Usage of session.referer_check INI setting is deprecated in %s on line 26 | ||
|
||
Deprecated: session_start(): Disabling session.use_only_cookies INI setting is deprecated in %s on line 32 | ||
|
||
Deprecated: session_start(): Enabling session.use_trans_sid INI setting is deprecated in %s on line 32 | ||
|
||
Deprecated: Constant SID is deprecated in %s on line 34 | ||
PHPSESSID=%s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.