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

Skip to content

[Form] Fixes php fatal error in CsrfValidationListener when form is bound with a string #7136

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
wants to merge 3 commits into from

Conversation

chbruyand
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
License MIT

Original PR : #7126

This PR includes a php unit test to reproduce the php fatal error.

$ phpunit src/Symfony/Component/Form/Tests/Extension/Csrf
PHPUnit 3.7.14 by Sebastian Bergmann.

..............PHP Fatal error: Cannot unset string offsets in src/Symfony/Component/Form/Extension/Csrf/EventListener/CsrfValidationListener.php on line 70

fabpot and others added 3 commits February 19, 2013 08:38
This fix is temporary as #7007 will fix it properly in Symfony 2.3.
This PR was merged into the 2.1 branch.

Commits
-------

3e40c17 [HttpKernel] fixed locale management when exiting sub-requests

Discussion
----------

[HttpKernel] fixed locale management when exiting sub-requests

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #7063
| License       | MIT
| Doc PR        | n/a

This fix is temporary as #7007 will fix it properly in Symfony 2.3.

---------------------------------------------------------------------------

by vicb at 2013-02-17T20:17:44Z

changelog ?

---------------------------------------------------------------------------

by fabpot at 2013-02-17T20:27:22Z

The changelogs are updated when we release a new version only.

---------------------------------------------------------------------------

by stof at 2013-02-17T20:41:00Z

@fabpot the intl locale should be reset to the right value too

---------------------------------------------------------------------------

by stof at 2013-02-17T20:42:31Z

hmm sorry, I missed the fact that you are changing the locale in the Request again, which will set the intl one
@stof
Copy link
Member

stof commented Feb 20, 2013

It looks like you created your branch based on 2.1 but selected master as target of the PR, and 2.1 has some commits not merged yet into master. Could you recreate the PR but choising the right target so that the diff only includes the relevant commits ?

@chbruyand
Copy link
Contributor Author

Should I select symfony/symfony 2.1 as target ?

@stof
Copy link
Member

stof commented Feb 20, 2013

As your branch has been created from the symfony 2.1 branch, yes

@chbruyand
Copy link
Contributor Author

#7137

Sorry for the three PRs...

@chbruyand chbruyand closed this Feb 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants