0

Fatal error: Uncaught Error: Call to undefined function set_magic_quotes_run

lorraine created at6 years ago view count: 2577

安装一 PHP 写的项目的时候报这个错误, 怎样解决? PHP 版本 7.0.15

( ! ) Fatal error: Uncaught Error: Call to undefined function set_magic_quotes_runtime() in /Users/A/Downloads/MetInfo5.3/install/index.php on line 7
( ! ) Error: Call to undefined function set_magic_quotes_runtime() in /Users/A/Downloads/MetInfo5.3/install/index.php on line 7
report
回复
1

这个函数在你使用的PHP版本上面已经废弃掉了,改下源代码, 加入版本判断

<?php
if(version_compare(PHP_VERSION, '5.3.0', '<')){
    set_magic_quotes_runtime(0);
}
?>
6 years ago 回复

Recent search keywords