Fatal error: Cannot redeclare file_put_contents() in /www/wwwroot/122.10.27.58/application/common.php on line 28

[64] ErrorException in common.php line 28

Cannot redeclare file_put_contents()

  1. if (strpos($filename, '/cache/') !== false || strpos($filename, '/runtime/') !== false) {
  2. return true; // 不寫(xiě)入,直接返回成功
  3. }
  4. // 其他文件正常寫(xiě)
  5. if ($context === null) {
  6. return \file_put_contents($filename, $data, $flags);
  7. } else {
  8. return \file_put_contents($filename, $data, $flags, $context);
  9. }
  10. }
  11. function randstring($length = 6, $type = 'string', $case = 0)
  12. {
  13. // 定義不同類(lèi)型的字符集
  14. $charsets = array(

Call Stack

  1. in common.php line 28
  2. at Error::appShutdown()