-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Remove HHVM support #22758
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
Remove HHVM support #22758
Conversation
fabpot
commented
May 18, 2017
Q | A |
---|---|
Branch? | master |
Bug fix? | no |
New feature? | no |
BC breaks? | yes-ish (for HHVM users) |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | n/a |
License | MIT |
Doc PR | n/a |
353b933
to
6fd2053
Compare
@@ -36,7 +36,7 @@ public static function castClosure(\Closure $c, array $a, Stub $stub, $isNested, | |||
$prefix = Caster::PREFIX_VIRTUAL; | |||
$c = new \ReflectionFunction($c); | |||
|
|||
$stub->class = 'Closure'; // HHVM generates unique class names for closures | |||
$stub->class = 'Closure'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The line itself can be removed
@@ -46,7 +46,7 @@ public function testGet() | |||
$intMax = PHP_INT_MAX; | |||
$res = (int) $var['res']; | |||
|
|||
$r = defined('HHVM_VERSION') ? '' : '#%d'; | |||
$r = '#%d'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be inlined
@@ -46,7 +46,7 @@ public function testGet() | |||
$intMax = PHP_INT_MAX; | |||
$res = (int) $var['res']; | |||
|
|||
$r = defined('HHVM_VERSION') ? '' : '#%d'; | |||
$r = '#%d'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would put it directly in the string instead of using a variable, as it does not change anymore
@@ -325,7 +321,7 @@ public function testThrowingCaster() | |||
$dumper->dump($data, $out); | |||
$out = stream_get_contents($out, -1, 0); | |||
|
|||
$r = defined('HHVM_VERSION') ? '' : '#%d'; | |||
$r = '#%d'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
@@ -384,7 +380,7 @@ public function testRefsInProperties() | |||
$data = $cloner->cloneVar($var); | |||
$out = $dumper->dump($data, true); | |||
|
|||
$r = defined('HHVM_VERSION') ? '' : '#%d'; | |||
$r = '#%d'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
@@ -47,7 +47,7 @@ public function testGet() | |||
$dumpId = $dumpId[0]; | |||
$res = (int) $var['res']; | |||
|
|||
$r = defined('HHVM_VERSION') ? '' : '<a class=sf-dump-ref>#%d</a>'; | |||
$r = '<a class=sf-dump-ref>#%d</a>'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
eef1f42
to
1972250
Compare
There are many more occurrences right? Or is it work in progress :) |
1972250
to
3281ccb
Compare
// Shared memory is available in PHP 7.0+ with OPCache enabled and in HHVM | ||
if ((PHP_VERSION_ID >= 70000 && ini_get('opcache.enable')) || defined('HHVM_VERSION')) { | ||
// Shared memory is available in PHP 7.0+ with OPCache enabled | ||
if (PHP_VERSION_ID >= 70000 && ini_get('opcache.enable')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PHP Version check can also be removed as PHP 7.1 is now the minimum.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not in this PR though, to make the changelog and the patch consistent
EOF | ||
.$strictTypes, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should keep the comma.
Already many people switch their infrastructure to HHVM this PR will complicate working with symfony for them. |
Are the really people switching from PHP 7 to HHVM (or from PHP 5 to HHVM instead of PHP 7)? |
@flip111 I'm sorry but the evidence we have (including Composer's own stats abut PHP usage) shows that almost nobody is using HHVM. |
People were switching to HHVM before PHP 7 was a thing. Since removing functionality (support for an alternative platform) is a big thing i had at least expected to see something positive here on the tradeoff. |
@nicolas-grekas fair enough, would have been nice to have in the PR description something like |
So, if HHVM support is being removed from Within those 3.5 years, those projects could be migrated away from HHVM (or Symfony if you like) or HHVM maybe manages to get their compatibility issues under control. And Symfony is going to be your least problem. Other libraries that go php-7-only will be running into similar trouble and most of the have shorter maintenance periods than Symfony does. Anyway, maybe the drop of HHVM should be announced in a blog article with some explanation to avoid confusion. |
I agree with the fact we should write a blog post about this /cc @javiereguiluz |
@@ -20,11 +20,4 @@ | |||
*/ | |||
abstract class ServerCommand extends Command |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this class should be tagged internal
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't it be removed (and marked deprecated in 3.x) instead? It doesn't really serve a purpose anymore, does it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could still me marked internal in 3.3 right? and so removable in 4.0 :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it has been added in 3.3, so we should act NOW
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my point :) deprecation way seems tedious.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
26045cb
to
bdf9da0
Compare
I'm going to write a blog post about this. |
See http://symfony.com/blog/symfony-4-end-of-hhvm-support for the blog post |
bdf9da0
to
02588ad
Compare
…s-grekas) This PR was merged into the 3.3 branch. Discussion ---------- [WebServerBundle] Mark ServerCommand as internal | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #22758 (comment) | License | MIT | Doc PR | - Commits ------- c91d195 [WebServerBundle] Mark ServerCommand as internal
bdf9da0
to
35569df
Compare
35569df
to
2125437
Compare
This PR was squashed before being merged into the 4.0-dev branch (closes #22758). Discussion ---------- Remove HHVM support | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | yes-ish (for HHVM users) | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Commits ------- 2125437 [WebServerBundle] removed obsolete ServerCommand abstract class ad1f35f removed HHVM support
This PR removes HHVM compatiblity following symfony#22758 It also removes some unneeded comments
This PR removes HHVM compatiblity following symfony#22758 It also removes some unneeded comments
This PR was squashed before being merged into the 4.0-dev branch (closes #23216). Discussion ---------- Remove HHVM support (second edition) | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | none | License | MIT | Doc PR | not needed This PR removes HHVM compatiblity following #22758 as some things were missing. It also removes some useless comments. Commits ------- 471b84c Remove HHVM support (second edition)