我剛剛更新了phpexcel,phpspreadsheet我注意到彈出了這個(gè)錯(cuò)誤:ErrorException (E_DEPRECATED) 不推薦使用帶大括號(hào)的數(shù)組和字符串偏移訪問語法需要“類/PHPExcel.php”;這是我的代碼的一部分,它觸發(fā)了上述錯(cuò)誤:文件: project/public/Classes/PHPExcel/Shared/ZipStreamWrapper.php public function stream_open($path, $mode, $options, &$opened_path) { // Check for mode if ($mode{0} != 'r') { //Error Line throw new PHPExcel_Reader_Exception('Mode ' . $mode . ' is not supported. Only read mode is supported.'); } 文件: project/public/Classes/PHPExcel.php/** PHPExcel root directory */if (!defined('PHPEXCEL_ROOT')) { define('PHPEXCEL_ROOT', dirname(__FILE__) . '/'); require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); //Error Line}文件: app/Http/Controllers/analyticsAuth/statement.old.phpuse PHPExcel_Reader_Excel2007;use PHPExcel; use PHPExcel_IOFactory;use ZipArchive;require 'Classes/PHPExcel.php'; //Error Line文件: project/public/Classes/PHPExcel/Autoloader.phpPHPExcel_Autoloader::Register();PHPExcel_Shared_ZipStreamWrapper::register(); //Error Lineif (ini_get('mbstring.func_overload') & 2) { throw new Exception('Multibyte function overloading in PHP must be disabled for string functions (2).');}謝謝
PHPExcel 錯(cuò)誤:不推薦使用帶大括號(hào)的數(shù)組和字符串偏移訪問語法
動(dòng)漫人物
2023-11-03 20:33:29