我剛剛更新了phpexcel,phpspreadsheet我注意到彈出了這個錯誤:ErrorException (E_DEPRECATED) 不推薦使用帶大括號的數組和字符串偏移訪問語法需要“類/PHPExcel.php”;這是我的代碼的一部分,它觸發了上述錯誤:文件: 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).');}謝謝
- 2 回答
- 0 關注
- 282 瀏覽
添加回答
舉報
0/150
提交
取消