LAMP Moodle 3.1
I am preparing to upgrade a 3.1 version to the latest stable. I copied the live php code to a new directory on the same server and setup the subdomain and dns to resolve to the testing address.
I created a new empty database on the same server and imported the an export from the live database. I updated the config.php setting with the new wwwroot urll moodledata directory (duplicate copy) and the sql name and user information.
I get the error: PHP Fatal error: Cannot use 'object' as class name as it is reserved in/home/XXXX/public_html/ecampustest/lib/setuplib.php on line 66
How can there be a code conflict when the platform is common between the live and test environments and the test application code is a direct copy of the live code.
I have read up on the error, but don't see how the live site does not have the same issue.
Thanks for any insight you might be able to provide.