8000 Prepare for PHP 7.4 preload by nicolas-grekas · Pull Request #32054 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Prepare for PHP 7.4 preload #32054

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
Jun 17, 2019
Merged

Conversation

nicolas-grekas
Copy link
Member
Q A
Branch? 4.4
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

PHP 7.4 preloading is not compatible with declaring the same class twice in if/else blocks.
Let's split the ones we have in several files.

@nicolas-grekas nicolas-grekas added this to the next milestone Jun 14, 2019
@nicolas-grekas nicolas-grekas merged commit 7cf3fb4 into symfony:4.4 Jun 17, 2019
nicolas-grekas added a commit that referenced this pull request Jun 17, 2019
This PR was merged into the 4.4 branch.

Discussion
----------

Prepare for PHP 7.4 preload

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

PHP 7.4 preloading is not compatible with declaring the same class twice in if/else blocks.
Let's split the ones we have in several files.

Commits
-------

7cf3fb4 Prepare for PHP 7.4 preload
@nicolas-grekas nicolas-grekas deleted the preload-preps branch June 18, 2019 07:23
class LogicException extends \LogicException implements Psr6CacheInterface, SimpleCacheInterface
{
}
require __DIR__.\DIRECTORY_SEPARATOR.'LogicException-psr16.php';
Copy link
Contributor

Choose a reason for hiding this comment

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

@nicolas-grekas Shouldn't this be:

require __DIR__.\DIRECTORY_SEPARATOR.'LogicException+psr16.php';

Copy link
Member Author
@nicolas-grekas nicolas-grekas Jun 18, 2019

Choose a reason for hiding this comment

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

oops you're right, could you please send a PR on branch 4.4 to fix it?

Copy link
Contributor

Choose a reason for hiding this comment

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

Done, I hope I did it right.
#32082

andersonamuller added a commit to andersonamuller/symfony that referenced this pull request Jun 18, 2019
nicolas-grekas added a commit that referenced this pull request Jun 18, 2019
…muller)

This PR was merged into the 4.4 branch.

Discussion
----------

[CACHE] Correct required file added in #32054

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

Just a little fix of the filename required for the preload feature.

Commits
-------

d04a3b3 [CACHE] Correct required file added in #32054
nicolas-grekas added a commit that referenced this pull request Jun 19, 2019
* 4.4:
  [FrameworkBundle] minor: fix typo in SessionTest
  [Debug] workaround BC break in PHP 7.3
  [CACHE] Correct required file added in #32054
  remove bc break code
nicolas-grekas added a commit to nicolas-grekas/symfony that referenced this pull request Jun 20, 2019
…as)"

This reverts commit a0aa941, reversing
changes made to 8496003.
fabpot added a commit that referenced this pull request Jun 20, 2019
…grekas)" (nicolas-grekas)

This PR was merged into the 4.4 branch.

Discussion
----------

Revert "minor #32054 Prepare for PHP 7.4 preload (nicolas-grekas)"

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

This reverts commit a0aa941, reversing
changes made to 8496003.

This change is incompatible with Composer's class map generation.

Commits
-------

8a1813a Revert "minor #32054 Prepare for PHP 7.4 preload (nicolas-grekas)"
fabpot added a commit that referenced this pull request Jun 20, 2019
* 4.4:
  Revert "minor #32054 Prepare for PHP 7.4 preload (nicolas-grekas)"
@nicolas-grekas nicolas-grekas modified the milestones: next, 4.4 Oct 27, 2019
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.

3 participants
0