php zip.class.php 解压报 unpack错误办理方案
Type v: not enough input, need 2, have 0 zip unpack
办理步伐
正常的在win情况下是没问题的,可是在linux情况下就会报unpack() [function.unpack]: Type v: not enough input, need 2, have 0 in错误,办理步伐就是:
在类文件中找到
改成
if(substr(dechex($bytes),-8,8) == '504b0506')OK!