Cannot use 'object' as class name

Cannot use 'object' as class name

by Chetan Mhatre -
Number of replies: 1

I am trying to install moodle (V 3.3) on my local machine, but getting the below

Fatal error: Cannot use 'object' as class name as it is reserved in C:\xampp\htdocs\moodle\lib\setuplib.php on line 66

Please help

Average of ratings: -
In reply to Chetan Mhatre

Re: Cannot use 'object' as class name

by Darko Miletić -

If you look here:

https://docs.moodle.org/dev/Moodle_3.3_release_notes#Server_requirements

You will see that PHP 7.0.x and 7.1.x can be used with caution. Nobody mentions PHP 7.2.x which is what you have.

In PHP 7.2 it is strictly prohibited to declare classes that have reserved names. Moodle up until 3.4 does have instances of this.

Possible solutions:


Average of ratings: Useful (4)