Page MenuHomePhabricator

mysql-connect issues during ErfgoedBot run
Closed, ResolvedPublic

Description

the main issue seems to be calls to mysql-connect which doesn't exist in PHP 7.0. This is likely related to {T216364}where we spotted similar things.

Event Timeline

The reason is that the bin script is executed on a host which only has PHP 7. The API itself runs in a container with PHP 5.6, so is not affected.

Change 532229 had a related patch set uploaded (by Jean-Frédéric; owner: Jean-Frédéric):
[labs/tools/heritage@master] Switch API to use PHP 7.2

https://gerrit.wikimedia.org/r/532229

Upgrading to PHP 7.2 is somewhat overkill just to fix this… but oh well…

JeanFred claimed this task.

I guess so! I think it’s somewhat broken to execute these PHP statements in a Python container, but oh well :)