Hi @all
Today I installed the slim3-framework on my windows 10 pc (using composer), after installation I copied the folder structure to my web-server and updated index.php in the folder /public.
Now, if I test a POST-command I get the following error:
[Mon Sep 10 13:26:52.011523 2018] [fcgid:warn] [pid 2848] [client …] mod_fcgid: stderr: PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION), expecting identifier (T_STRING) or \\ (T_NS_SEPARATOR) in /var/www/…/vendor/myclabs/deep-copy/src/DeepCopy/deep_copy.php on line 5
The source of the deep_copy.php is:
<?php namespace DeepCopy; use function function_exists; if (false === function_exists('DeepCopy\deep_copy')) { /** * Deep copies the given value. * * @param mixed $value * @param bool $useCloneMethod * * @return mixed */ function deep_copy($value, $useCloneMethod = false) { return (new DeepCopy($useCloneMethod))->copy($value); } } Did I miss anything during installation? Any help is highly appreciated. Thanks! Gerhard