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!