X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:subject:to:message-id:date:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=Se7 6+P05LT5tvnElhvp0dQVM/xJX0Hq/7MMDjEebM+7HV1/aZ1dagygFYqDfjGR/ziO qdpH74Mt6ir/JT36srQARx/Lor/g3/gylMUSJEr6QtyY7kaY7Tg/2PY2BFXeUsge x2ppxNaX9IPupfLuPgEhDlaigI1dUz0sSl4BuVOs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:subject:to:message-id:date:mime-version :content-type:content-transfer-encoding; s=default; bh=x1JuXB5KP 3flfkUFcEf+HQDM61Q=; b=nFqxOMGLLBSDjBZigTfM9DKMXNqv7CU655vc3Yz7S 2N/5RwLwDXhEMV8y4dVp7CpbtwdrDW+tDyZEMJUqonn0bGhNAYfikxfLoaYUVqJu B8m5pRhuF4dprk2BAeIL+XJRMoNUzdeWHHE2WU3hO91ztgQIGjEJTXImNMk8BuCb j8= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=snippets, H*M:8f04, H*MI:8f04, H*RU:sk:mail-lf X-HELO: mail-lf0-f43.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=Sa59PDJjKQLEU/jHt17U0Qg4RsmiVFmYhH5YHmeUquE=; b=qXFnAz/gNU3lxsMUV8wshNcFGdC4iSQlam7lS5PkW+3aLb8AVVRN6JdDRGXvoVIrLU kQtvnAdw5ahA1DLTJme0hAThJoPk81kmY3uYGR/mHk/VTNfLEbk5dhlzAdAaqyZ03IVo uOtiixLQH6ogYXJMJ70JrBlBB6Ga2RdaaRetL7wIIjVOEq4iXL+iQesJow1h9H7MjyyV 1ExzPXPLGAjC3iw9uZa4CREkMkJUjIqvxiKSmbyL0so6Xs3DeIpK/o84oSD/GySnRtFA oYFsKngTsxvoJzLmyh9OAwq4AzrsFuVG5YrRyYZWmVGB/3i2PjcANMPh03fZUi1mhtWO BeqQ== X-Gm-Message-State: AODbwcBmTBhN/n3FcakjaVmckGxC4Ai8ZV89b3neoFXyIeSCB1SigyxI 0VpfZ/hlUGbIiveFwPg= X-Received: by 10.25.169.129 with SMTP id s123mr1850203lfe.119.1494853426966; Mon, 15 May 2017 06:03:46 -0700 (PDT) From: Joni Eskelinen Subject: PHP zip extension broken with libzip To: cygwin AT cygwin DOT com Message-ID: Date: Mon, 15 May 2017 16:03:47 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes This has been a long standing bug, but i just recently sought out the cause. The following snippets fails in currently packaged php: open("test.zip", ZipArchive::CREATE | ZipArchive::OVERWRITE); $zip->addFromString("foo.txt", "foo"); $zip->close(); With a warning: Warning: ZipArchive::close(): Renaming temporary file failed: Illegal seek in /tmp/zip.php on line 5 It appears that the problem lies in libzip. If the extension is built without `--with-libzip=/usr`, the error doesn't emerge. When libzip is not available, extension is built with a bundled zip implementation. To test, navigating into `ext/zip` in php source. Test with bundled library: phpize && LDFLAGS='-lpcre' ./configure && make test Test with libzip: phpize && LDFLAGS='-lpcre' ./configure --with-libzip=/usr && make test Latter produces 19 failed tests. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple