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

Skip to content

[Debug] Remove false-positive check in DebugClassLoader #23989

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
merged 1 commit into from
Aug 27, 2017

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Aug 25, 2017

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

In some edge case situations, DebugClassLoader generates false-positives (see linked issue, ping @gharlan).

@stof
Copy link
Member

stof commented Aug 25, 2017

Do we know what kind of edge cases are triggering this ? The exception in case of mistake in the class name or the namespace was actually useful to me. It would be great to know what triggers this edge case

@nicolas-grekas
Copy link
Member Author

Just found why, I'm going to update the PR asap.

@nicolas-grekas nicolas-grekas force-pushed the config-debug-compat branch 2 times, most recently from 92a71f3 to a7a8dae Compare August 25, 2017 21:13
@nicolas-grekas
Copy link
Member Author

Ready. Basically replaces #16651 (still fixing #15297)

@nicolas-grekas
Copy link
Member Author

now with a test case

@gharlan
Copy link
Contributor

gharlan commented Aug 27, 2017

I can confirm it fixes my issue! Thanks!

By the way: What is the best/easiest way to test a symfony pr in an existing project, when not using symfony/symfony (because of flex)?
Normally I add the fork to my composer.json repositories and require the pr branch. But there is no fork of symfony/debug.. ;)

@fabpot
Copy link
Member

fabpot commented Aug 27, 2017

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 466da3f into symfony:2.7 Aug 27, 2017
fabpot added a commit that referenced this pull request Aug 27, 2017
…icolas-grekas)

This PR was merged into the 2.7 branch.

Discussion
----------

[Debug] Remove false-positive check in DebugClassLoader

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

In some edge case situations, DebugClassLoader generates false-positives (see linked issue, ping @gharlan).

Commits
-------

466da3f [Debug] Remove false-positive check in DebugClassLoader
This was referenced Aug 28, 2017
@nicolas-grekas nicolas-grekas deleted the config-debug-compat branch August 28, 2017 21:55
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.

5 participants