Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[HttpFoundation] Adduse_strict_mode in validOptions for session#22352

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:2.7fromsstok:patch-2
Apr 10, 2017

Conversation

@sstok
Copy link
Contributor

QA
Branch?3.2
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#9258
LicenseMIT
Doc PR

PHP inisession.use_strict_mode was added in PHP 5.5.2 so I didn't target 2.8 as this still uses PHP 5.3.https://secure.php.net/manual/en/session.configuration.php#ini.session.use-strict-mode

@pierredup
Copy link
Contributor

PHP ini session.use_strict_mode was added in PHP 5.5.2 so I didn't target 2.8 as this still uses PHP 5.3

You can still run SF 2.x on PHP 5.5 and want to set this option. So IMO this can go into 2.7 (earlier versions of PHP should just ignore the option if you set it)

sstok and MacDada reacted with thumbs up emoji

@sstoksstok changed the base branch from3.2 to2.7April 9, 2017 16:31
@sstok
Copy link
ContributorAuthor

Rebased on 2.7.

@ghost
Copy link

Is there a good reason not to enable it by default? I'm not 100% sure of the intricacies of the option, so maybe it's a bad idea.

MacDada reacted with thumbs up emoji

@nicolas-grekasnicolas-grekas added this to the2.7 milestoneApr 10, 2017
Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

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

👍

@fabpot
Copy link
Member

Thank you@sstok.

@fabpotfabpot merged commit130ee32 intosymfony:2.7Apr 10, 2017
fabpot added a commit that referenced this pull requestApr 10, 2017
… session (sstok)This PR was merged into the 2.7 branch.Discussion----------[HttpFoundation] Add `use_strict_mode` in validOptions for session| Q             | A| ------------- | ---| Branch?       | 3.2| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#9258| License       | MIT| Doc PR        |PHP ini `session.use_strict_mode` was added in PHP 5.5.2 so I didn't target 2.8 as this still uses PHP 5.3.https://secure.php.net/manual/en/session.configuration.php#ini.session.use-strict-modeCommits-------130ee32 Add `use_strict_mode` in validOptions for session
@sstoksstok deleted the patch-2 branchApril 10, 2017 15:41
This was referencedMay 1, 2017
@MacDada
Copy link
Contributor

MacDada commentedMay 17, 2017
edited
Loading

How do I configure this?

I've tried:

#config.ymlframework:    session:        use_strict_mode: 1

But it throwsInvalidConfigurationException.

And it's not defined in the config:https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php#L696

@MacDada
Copy link
Contributor

TheInvalidConfigurationException is thrown, because the option (and many other) is not defined here:https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php#L696

Make a PR?

fabpot added a commit that referenced this pull requestJun 18, 2017
… option for NativeSessionStorage (MacDada)This PR was merged into the 2.7 branch.Discussion----------[FrameworkBundle] Sessions: configurable "use_strict_mode" option for NativeSessionStorage| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| License       | MITIt is currently not possible to configure the `use_strict_mode` option for `NativeSessionStorage` in a proper manner.The reason of this PR:#22352 (comment)It could be considered a new feature, but I wish it wouldn't, as I don't want to do any ugly hacking to get it working.What else could be done?* implement more options from `NativeSessionStorage` in the config?* get rid of duplication somehow (maybe a static method in `NativeSessionStorage` that would return the option list and could be used in `FrameworkExtension`?)* update `FrameworkExtensionTest`?* update `ConfigurationTest`?* update [the docs](https://symfony.com/doc/current/reference/configuration/framework.html#session)?I'm willing to do those if decided.Commits-------90e192e Sessions: configurable "use_strict_mode" option for NativeSessionStorage
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

2.7

Development

Successfully merging this pull request may close these issues.

6 participants

@sstok@pierredup@fabpot@MacDada@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp