Welcome Guest, Not a member yet? Register   Sign In
Codeigniter 4 and PHP 8
#6

(This post was last modified: 01-04-2021, 11:35 PM by John_Betong.)

I have just git cloned the latest CI4 Version and it works OK with PHP phpversion: 8.0.0.

The the only KLUDGE I had to make was to disable mbstring in the following:

File: /system/CodeIgniter.php
Code:
protected function resolvePlatformExtensions()
{
$requiredExtensions = [
'curl',
'intl',
'json',
# 'mbstring',
'xml',
];

I'm quite busy at the moment and would be grateful if some one could resolve the problem. I have enabled PHP 8.0.0 mbstring but it still does not work.

Maybe teaching old coders to suck eggs but anyway once more than one PHP version is installed I toggle the two different versions using the following:
Code:
#!/bin/bash

# COMAND LINE:
# `/./php-8.sh

sudo a2dismod php7.4
sudo a2enmod  php8.0

systemctl restart apache2

The last command does not work from the batch file and I have to enter the text into the COMMAND LINE.
Reply


Messages In This Thread
Codeigniter 4 and PHP 8 - by ViLar - 08-12-2020, 01:21 AM
RE: Codeigniter 4 and PHP 8 - by jreklund - 08-12-2020, 07:46 AM
RE: Codeigniter 4 and PHP 8 - by John_Betong - 08-12-2020, 11:03 PM
RE: Codeigniter 4 and PHP 8 - by gosocial2 - 01-04-2021, 01:08 PM
RE: Codeigniter 4 and PHP 8 - by seunex - 01-04-2021, 10:30 PM
RE: Codeigniter 4 and PHP 8 - by John_Betong - 01-04-2021, 11:33 PM
RE: Codeigniter 4 and PHP 8 - by ViLar - 01-05-2021, 04:32 AM
RE: Codeigniter 4 and PHP 8 - by ardritkrasniqi - 01-06-2021, 03:34 AM
RE: Codeigniter 4 and PHP 8 - by John_Betong - 01-05-2021, 09:05 AM
RE: Codeigniter 4 and PHP 8 - by paulbalandan - 01-05-2021, 11:55 PM
RE: Codeigniter 4 and PHP 8 - by seunex - 01-06-2021, 12:30 AM
RE: Codeigniter 4 and PHP 8 - by MGatner - 01-06-2021, 08:03 AM
RE: Codeigniter 4 and PHP 8 - by zoom360 - 04-09-2022, 07:30 AM
RE: Codeigniter 4 and PHP 8 - by InsiteFX - 04-10-2022, 12:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB