Skip to content

Removes support for PHP 5.x - #756

Closed
mrailton wants to merge 5 commits into
doctrine:masterfrom
mrailton:master
Closed

Removes support for PHP 5.x#756
mrailton wants to merge 5 commits into
doctrine:masterfrom
mrailton:master

Conversation

@mrailton

@mrailton mrailton commented Jan 2, 2017

Copy link
Copy Markdown

Removes support for PHP 5.x from composer.json and .travis.yml

@Ocramius
Ocramius self-requested a review January 2, 2017 09:08
@Ocramius Ocramius self-assigned this Jan 2, 2017
@Ocramius Ocramius added this to the 2.8.0 milestone Jan 2, 2017
@Ocramius

Ocramius commented Jan 2, 2017

Copy link
Copy Markdown
Member

@railto I think that the tested HHVM version needs tweaking. Please check the @travis-ci docs for that.

@stof

stof commented Jan 2, 2017

Copy link
Copy Markdown
Member

And this work should start on the ORM and ODM side (otherwise they would not be able to require using new features)

Brings in line with other package
@Ocramius

Ocramius commented Jan 2, 2017

Copy link
Copy Markdown
Member

@stof ODM doesn't depend on any new stuff AFAIK /cc @alcaeus

Comment thread .travis.yml Outdated

matrix:
allow_failures:
- php: hhvm

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is not a solution: check if a newer HHVM version is available - HHVM now support PHP7 stuff.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Apologies, was bringing it in line with the other repos, will read up on how to force a version of HHVM as don't use it much myself at present.

Comment thread .travis.yml
matrix:
matrix:
fast_finish: true
include:

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This brings in the current version of HHVM, 3.17, however is still throwing the same error with
This package requires php ^7.0 but your HHVM version does not satisfy that requirement.
This error is also happening on other repos like the primary doctrine2 repo per this test - https://travis-ci.org/doctrine/doctrine2/jobs/188191005

Not sure what else I can do with this as HHVM 3.17 is not reporting to be PHP 7.x compatible per composer.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@fredemmott can you eventually give us some insight on this?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You need hhvm.php7.all=true in the ini file; I don't know how to do this on Travis. Composer might also need some poking to understand what that does.

cc @paulbiss, @aorenste for that - also, it might be time to flip the default of that ini setting.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@railto on doctrine/orm#6288 I've managed to get the test suite running (but HHVM fails badly in terms of PHP compatibility that I gave up 😭).

What I've learned:

  • dist should be defined on the root level
  • we must set hhvm.php7.all=1 AND hhvm.php7.scalar_types=0 otherwise it doesn't work properly (HHVM simply enables strict mode for all files)

@alcaeus

alcaeus commented Jan 2, 2017

Copy link
Copy Markdown
Member

@stof @Ocramius ODM 2.0 (which will use the new ext-mongo extension) will be PHP 7.1 only - I might even go as far as kicking PHP 5.x support for ODM 1.2 (which we might do before tagging 2.0). Either way, I have no problem with doctrine/common dropping 5.x support for 2.8.

@mrailton

mrailton commented Feb 4, 2017

Copy link
Copy Markdown
Author

Closing as I do not have the ability to get this to work with HHVM tests

@mrailton mrailton closed this Feb 4, 2017
@Ocramius Ocramius modified the milestone: 2.8.0 Feb 4, 2017
@Ocramius

Ocramius commented Feb 4, 2017

Copy link
Copy Markdown
Member

Reopening: still needs to happen, even if you don't work on the PR yourself.

@Ocramius Ocramius reopened this Feb 4, 2017
@Majkl578

Majkl578 commented Feb 4, 2017

Copy link
Copy Markdown
Contributor

I tried this using --ignore-platform-reqs composer switch, but it triggered bunch of test failures:
https://travis-ci.org/Majkl578/doctrine-common/jobs/198386782
Might be because my build used 3.17.2 whereas doctrine/common uses 3.6 (although both specify just hhvm dependency).

@Majkl578

Copy link
Copy Markdown
Contributor

Handled in #785.

@malarzm

malarzm commented Apr 15, 2017

Copy link
Copy Markdown
Member

Closing in favour of #785

@malarzm malarzm closed this Apr 15, 2017
@Ocramius Ocramius assigned malarzm and unassigned Ocramius Apr 15, 2017
@Ocramius Ocramius removed this from the 2.8.0 milestone Apr 15, 2017
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.

8 participants