Skip to content

[DependencyInjection][2.3] Add exception for service name not dumpable in PHP #8519

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 13 commits into from

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented Jul 19, 2013

Same as #8494 for branch 2.3 since the DI component has been refactored (bb797ee, f1c2ab7)

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

Throws an exception when the DIC is dumped to PHP, before generating invalid PHP.
The regex comes from the PHP doc: http://www.php.net/manual/en/language.oop5.basic.php

fabpot and others added 13 commits July 13, 2013 21:08
This PR was submitted for the master branch but it was merged into the 2.2 branch instead (closes symfony#8479).

Discussion
----------

 	[HttpFoundation] Fixed NativeSessionStorage:regenerate when does not exists

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | symfony#8460
| License       | MIT
| Doc PR        | -

**warning** I did not try to reproduce this bug, so I am not sure it fixes the issue. I just open a PR with the suggested patch. Tests for http foundation are OK. I am not sur it's the best way to fix this issue as I do not understand why symfony reach this code if $_SESSION is not set.

Commits
-------

f5d59fb [HttpFoundation] Fixed NativeSessionStorage:regenerate when  does not exists
* 2.2:
  fixed typo
  bumped Symfony version to 2.2.5
  updated VERSION for 2.2.4
  update CONTRIBUTORS for 2.2.4
  updated CHANGELOG for 2.2.4
  Fixed NativeSessionStorage:regenerate when does not exists
  removed extraneous whitespaces

Conflicts:
	src/Symfony/Component/HttpKernel/Kernel.php
@stloyd
Copy link
Contributor

stloyd commented Jul 19, 2013

@GromNaN You selected wrong branch while creating PR (should choose 2.3 but used master).

@GromNaN
Copy link
Member Author

GromNaN commented Jul 19, 2013

@stloyd Do you know how to switch ?

@stof
Copy link
Member

stof commented Jul 19, 2013

When creating a PR, you can change the target of the PR:

pr_change_target

You can then select the appropriate branch:

pr_select_target

@fabpot fabpot closed this Jul 19, 2013
@GromNaN GromNaN deleted the 2.3-di-dump-exception branch June 7, 2017 16:36
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.

6 participants