Summary: | www/mod_php56 should be upgraded to www/mod_php71 after "pkg upgrade -a" | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Marcin Cieślak <saper> |
Component: | Individual Port(s) | Assignee: | freebsd-ports-bugs (Nobody) <ports-bugs> |
Status: | Closed Works As Intended | ||
Severity: | Affects Many People | CC: | ale, tz |
Priority: | --- | ||
Version: | Latest | ||
Hardware: | amd64 | ||
OS: | Any |
Description
Marcin Cieślak
2018-09-19 19:50:38 UTC
Aloha Marcin, this works like intended. The default PHP version switched from PHP 5.6 to 7.1. Please consult: $ 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! Greetings, Torsten Hi Torsten 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: RUN_DEPENDS+= ${PHPBASE}/${APACHEMODDIR}/libphp${PHP_VER:C/.$//}.so:${MOD_PHP_PORT} 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: Author: tz Date: Mon Sep 24 09:59:42 UTC 2018 New revision: 480564 URL: https://svnweb.freebsd.org/changeset/ports/480564 Log: Improve UPDATING notice for switch of PHP default version to PHP 7.1. The port mod_php56 was not handled by the upgrade instruction. PR: 231486 Changes: head/UPDATING 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! :) |