Closed Kocal closed 3 years ago
Hello 🤝
Yep, json extension is now embedded in php starting from version 8 :)
Here, at elao, we use a special condition to not include it, depending on php version. See: https://github.com/manala/manala-recipes/blob/master/elao.app/.manala/ansible/inventories/system.yaml.tmpl#L334
I'm afraid you are using our oooold and deprecated skeleton role, which don't handle this situation.. Am i right ?
Well, yeah we always use the "old" skeleton generated by Manalize if I'm not wrong.
I'm will migrate to it and see what happens, thank you!
Feel free to contact me directly, we have solutions :)
For people having the same issue than me, I was able to not install the JSON extension by doing this:
# ansible/group_vars/app.yaml
app_patterns:
# ...
php_extensions:
- extension: json
state: ignore
# Symfony
- intl
- curl
- mbstring
- xml
# App
- pgsql
Since this list is merged with the skeleton's php_extensions
, passing state: ignore
does not install the extension:
I suppose we can close it, since a solution has been given and updating the outdated skeleton is not the right solution IMO.
Hi! :wave:
I can finally try my work at #509 but I faced the following issue while running
make setup
ormake provision
:(those commands are wrapper around
vagrant provision
)It seems that the JSON support is already integrated to PHP since 8.0, there is no
ext-json
anymore and no packagephp8.0-json
either.I've tried to investigate a bit, but I don't understand how results to installing
'php8.0-cli' 'php8.0-fpm' 'php8.0-opcache' 'php8.0-readline' 'php8.0-json' 'php-xdebug' 'php8.0-mysql' 'php8.0-mbstring' 'php8.0-zip' 'php8.0-bz2' 'php-redis' 'php8.0-intl' 'php8.0-curl' 'php8.0-xml' 'php8.0-pgsql'
packages.Note that I don't require the JSON extension myself:
Do you know what can happens and how can we fix it? Thanks!