Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[HttpFoundation] Just skip PHP's session_set_save_handler, not the full setSaveHandler #24946

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

Closed

Conversation

sroze
Copy link
Contributor

@sroze sroze commented Nov 13, 2017

Q A
Branch? 2.7
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #24934,
License MIT
Doc PR ø

We've removed the setSaveHandler call while all we needed was remove the call to PHP's session_set_save_handler function.

*
* @throws \InvalidArgumentException
*/
public function setSaveHandler($saveHandler = null)
public function setSaveHandler($saveHandler = null, bool $updatePhpHandler = true)
Copy link
Member

@chalasr chalasr Nov 13, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adding a new argument to a public method is a BC break (breaks child classes), should use func_num_args() func_get_arg()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point 🤦‍♂️

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chalasr updated 👍

@sroze sroze force-pushed the bug-24934-just-skip-php-set-session-handler branch 3 times, most recently from 9d04017 to eeba04c Compare November 13, 2017 13:33
@sroze sroze force-pushed the bug-24934-just-skip-php-set-session-handler branch from eeba04c to 5cada3a Compare November 13, 2017 13:33
@sroze sroze changed the title [HttpFoundation][ Just skip PHP's session_set_save_handler, not the full `setSaveHand… [HttpFoundation] Just skip PHP's session_set_save_handler, not the full setSaveHandler Nov 13, 2017
@chalasr chalasr added this to the 2.7 milestone Nov 13, 2017
nicolas-grekas added a commit that referenced this pull request Nov 13, 2017
…kas, sroze)

This PR was merged into the 2.7 branch.

Discussion
----------

[HttpFoundation] Fix session-related BC break

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #24941, #24934, #24947 and #24946
| License       | MIT
| Doc PR        | -

Conservative fix.

Commits
-------

38186aa [HttpFoundation] Add test
3eaa188 [HttpFoundation] Fix session-related BC break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants