clean all uses of private libzip structure
move check from NULL deref from php ext to in libzip

libzip patch is from upstream
http://hg.nih.at/libzip?cs=a2f3bb7896c0