On a 11.1-RELEASE-p4 box running apache 2.4 + mod_php + wordpress setup "pkg upgrade -a" caused a breakage because all lang/php56* packages got upgraded to php71 but mod_php56 was left installed.
Therefore mod_php56 could not load extensions needed to run.
Installing mod_php71 by hand solved the issue but this should be done during the upgrade
this works like intended. The default PHP version switched from PHP 5.6 to 7.1.
$ pkg updating php56
This will display an guide to update. Please always use pkg updating before pkg upgrade to make sure you do not miss any important upgrade notices!
I read the UPDATING notice that informed me about php default version switch and this is fine.
The problem is (as I see it) that wordpress says it needs both some PHP modules and the webserver module:
USES= php:web cpe
USE_PHP= curl gd hash mysqli pcre tokenizer xml zip zlib ftp
and we let "curl gd hash ..." modules to update, but the former stays as it was.
If I read properly, the dependency is based on the current PHP_VER:
so for ports it wouldn't be a problem.
Maybe it is the problem with pkg not understanding the above?
It's definitely a POLA violation (my opinion only), and UPDATING entry does not mention this issue specifically.
A commit references this bug:
Date: Mon Sep 24 09:59:42 UTC 2018
New revision: 480564
Improve UPDATING notice for switch of PHP default version to PHP 7.1.
The port mod_php56 was not handled by the upgrade instruction.
You are right. I was under the impression that mod_php was handled by the instruction, but it is not.
Thank you for pointing me to this mistake. I added a paragraph for mod_php to the updating instruction! :)