Closed caige-phper closed 5 years ago
在app\Helper\Functions.php中加入任何一个函数,程序启动报错
PHP Fatal error: Cannot redeclare test() (previously declared in /home/wwwroot/swoft2/app/Helper/Functions.php:7)
在app\Helper\Functions.php中加入任何一个函数,程序启动报错 PHP Fatal error: Cannot redeclare test() (previously declared in /home/wwwroot/swoft2/app/Helper/Functions.php:7)
使用function_exists判断函数是否已经存在,不存在才定义就好了
在app\Helper\Functions.php中加入任何一个函数,程序启动报错
PHP Fatal error: Cannot redeclare test() (previously declared in /home/wwwroot/swoft2/app/Helper/Functions.php:7)