PHP 7.2 as Fedora 27 change
by Remi Collet
Hi,
Fedora roadmap is now mostly synced and compatible with PHP one.
Fedora 25 was released with PHP 7.0
Fedora 26 will be released end of June with PHP 7.1
Fedora 27 will be released end of year, as PHP 7.2
I plan to submit a change proposal to have PHP 7.2 as default version in
Fedora 27 very soon.
The only risk I see is a possible schedule slip (PHP side) which will
make Fedora delivered with a RC version (but seems acceptable).
We should be able to import PHP 7.2 beta/RC during this summer, which
will give us ~4 months to fix possible breakage.
It will also helps a lot upstream developers to have this version
monitored by Koschei ASAP.
One of the big change is the removal of the mcrypt extension (I'm
fighting for years to see this disappear from package dependencies),
btw, we can provide it, if really needed, using the pecl ext.
FYI, PHP 7.2 Software Collection already available in my testing
repository, so we can start using it for tests (I already start to use
this version for running library test suite, when possible).
Feedback ?
Remi.
6 years, 5 months
PHPUnit 6 available in Fedora 26+
by Remi Collet
Hi,
PHPUnit version 6.0.8 just hit Fedora 26/rawhide repository today,
thanks to Shawn for the reviews.
This package can be installed beside PHPUnit 5, and doesn't provide
"phpunit" or php-composer(phpunit/phpunit), as this is a major update
which is not compatible with previous version.
If you have a library which is compatible with phpunit 5 and 6, here is
a proposal (I started to use it in my packages)
%if 0%{?fedora} >= 26
%global phpunit %{_bindir}/phpunit6
%else
%global phpunit %{_bindir}/phpunit
%endif
BuildRequires: %{phpunit}
And in %check
%{phpunit} --no-coverage --verbose
Alternative method when you want to run more tests,
during local build, taking benefit of SCL
ret=0
for cmd in "php %{phpunit}" \
"php56 %{_bindir}/phpunit" \
"php70 %{_bindir}/phpunit" \
"php70 %{_bindir}/phpunit6" \
"php71 %{_bindir}/phpunit6"; do
if which $cmd; then
$cmd --no-coverage --verbose || ret=1
fi
done
exit $ret
Cheers,
Remi.
6 years, 7 months