PHP群:95885625 Hbuilder+MUI群:81989597 站长QQ:634381967
    您现在的位置: 首页 > 开发编程 > ThinkPhp教程 > 正文

    解决thinkphp3.2的GIF缩略图生成失败方法

    作者:w634381967来源:网络浏览:时间:2020-09-30 00:07:50我要评论
    导读:解决GIF缩略图生成失败(ThinkPHP 3.2 在 PHP5.3.3以上版本)\ThinkPHP\Library\Think\Image\Driver\Gd.class.php LINE: 128原因:GIF...
    解决GIF缩略图生成失败(ThinkPHP 3.2 在 PHP5.3.3以上版本)
    \ThinkPHP\Library\Think\Image\Driver\Gd.class.php LINE: 128
    原因:
    GIF.class.php中GIFEncoder和GIFDecoder的构造函数使用类名没有使用__construct,改为__construct就正常了。
    错误原因如下:As of PHP 5.3.3, methods with the same name as the last element of a namespaced class name will no longer be treated as constructor. This change doesn't affect non-namespaced classes.

    为方便大家,特提供一个修改好的文件供大家下载!
    大家将附件压缩包中的文件 GIF.class.php 解压覆盖到 ThinkPHP库中,
    具体位置:
    ThinkPHP\Library\Think\Image\Driver\GIF.class.php


    下载:GIF.class.zip
    转载请注明(B5教程网)原文链接:https://b5.mxunkeji.com/content-83-1050-1.html
    相关热词搜索: thinkphp3.2 缩略图