解决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 下载:215 次 )
ad:真正免费,域名+虚机+企业邮箱=0元