解决TP3.2的GIF缩略图生成失败

浏览:3231 发布日期:2014/05/22 分类:系统代码 关键字: 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 ( 3.84 KB 下载:314 次 )

评论( 相关
后面还有条评论,点击查看>>