spotorm / spot2

Spot v2.x DataMapper built on top of Doctrine's Database Abstraction Layer
http://phpdatamapper.com
BSD 3-Clause "New" or "Revised" License
601 stars 101 forks source link

Travis build fixes (PHP 7.1, HHVM) #271

Open FlipEverything opened 6 years ago

FlipEverything commented 6 years ago

Still work in progress.

Bugs that cause the build to fail:

Todo:

FlipEverything commented 6 years ago

Should we support PHP 5.4 (support officially ended in 2015) and PHP 5.5 (support officially ended in 2016)? More specifically I'm thinking about backwards compatibility "hacks" like this: 338497f235c377f54ccb2284b0e32c65a5069072 I haven't seen anything like that in the current codebase.

Do the community have the need for official HHVM support? Just figured out that I don't have the time to maintain HHVM compatibility in top of the new PHP releases given the fact that PHP 7+ is very close to HHVM's performance and "HHVM will not aim to target PHP7". Currently the HHVM mysql+psql build is running just fine (and I don't have the time to figure out what's wrong with sqlite) so we can include it in the repo but I think that would be an (unnecessary) commitment.

I think we should add nightly to our build and allow it to fail. This will help us move to the next PHP versions in the future. With PHP5's deprecation later this year I think this is a very important thing to do.

What are your thoughts? @vlucas @tuupola @nebulousGirl @willemwollebrants

FlipEverything commented 6 years ago

ping

vlucas commented 6 years ago

I feel like if we change support for PHP versions, we might have to do a major release, or at least a clear minor version bump with notes on why. I would like to do another patch version release before we do that to get out all the fixes that are in master first.

FlipEverything commented 6 years ago

I can agree with that.

vlucas commented 6 years ago

HHVM has kind of fallen out of favor with PHP 7+ performance being on-par with it. I'd be okay with dropping it in the next major release if it is burdensome to maintain support for.

vlucas commented 6 years ago

This blog post just came out. Let's drop HHVM for sure in the next major version. https://hhvm.com/blog/2018/09/12/end-of-php-support-future-of-hack.html