北京尚网汇智科技有限公司
您当前所在的位置:尚网汇智网站建设 > PHP技术 > 文章详细
网站建设知识
NEWS
联系我们
  • 网站建设服务电话
  • 400-883-2887
  • 公司地址:北京市昌平科技园区创意大厦2-806
  • 服务项目
    高端网站建设
    移动/微信网站建设
    手机APP开发
    OA/ERP业务系统开发
    网站维护托管
    CMS模板制作

    php-5.4 升级到 php7.2 PHPExcel 报错

    发布时间:2020-07-28 08:49:08
    php-5.4 升级到 php7.2 PHPExcel 报错


    修改:PHPExcel\Cell.php   第799 行添加


    1
    $pColumnIndex = (int)$pColumnIndex;
      


    * PHPExcel已停止维护,建议转到 【PHPOffice/PhpSpreadsheet】


     


    然而还有一个不容易发现的问题,在高版本PHP7下,出现ERR_INVALID_RESPONSE的错误还可能由于下面的原因导致 【参考:https://blog.csdn.net/yicixing7/article/details/65628064】


    1
    Fatal error: 'break' not in the 'loop' or 'switch' context in <mypath>\PHPExcel\PHPExcel\Calculation\Functions.php on line 581
    请打开PHPExcel\Calculation\Functions.php文件,删除掉581行的break即可



    文章出自:北京网站建设公司-尚网汇智 https://www.net2006.com 如转载请注明出处!
    咨询服务热线
    400-883-2887
    客服电话:400-883-2887  传真:010-51654992  E-mail:support@net2006.com
    本站设计已受版权保护,任何公司及个人不得复制,违者将依法追究责任,特此声明。

    Copyright © 2005-2018 北京尚网汇智科技有限公司 版权所有 京ICP备13031271号
    查找内容: