Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38544 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93027 invoked from network); 23 Jun 2008 15:06:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jun 2008 15:06:32 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 66.249.92.175 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 66.249.92.175 ug-out-1314.google.com Received: from [66.249.92.175] ([66.249.92.175:64848] helo=ug-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2A/50-25460-5FBBF584 for ; Mon, 23 Jun 2008 11:06:30 -0400 Received: by ug-out-1314.google.com with SMTP id h3so426200ugf.29 for ; Mon, 23 Jun 2008 08:06:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=bOyakX7mU5Qsy3yR/vYSJboK7coG7A8SimyzYNn510M=; b=rGDlOxphBGcXOqDoXe8X/gtUT+T0vvcCQKCFq0CZ/sVlO2yELmbh6+qxmipE5x+zYO ajyOoDPs/un39WfGfIiCY1xV2SHmtz6u/KDOcMOYRwwI/0caJHoFzKKTI7wQrbLMiPqi xGMeq0vTo1mdD/zvPzUtQ85Etu+586s815zaI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=gy+I3K5tyxYLG+6EzdFfezjL7XIff3P4LYNSsbXK3d+G4IC7QLLDPs7AJRMFMxrs7G +DFjy4vW742fys1HXmlzg7q9yPYM8ubehnIGIBNDfq4LWIig2XegEqa6wOFI1fEOPDN8 K1+lMYluNS+tA/cuhiBG06PlKke95DNSC5THs= Received: by 10.67.118.2 with SMTP id v2mr2260431ugm.30.1214233586298; Mon, 23 Jun 2008 08:06:26 -0700 (PDT) Received: by 10.66.245.3 with HTTP; Mon, 23 Jun 2008 08:06:25 -0700 (PDT) Message-ID: Date: Mon, 23 Jun 2008 17:06:25 +0200 To: "Steph Fox" Cc: "Greg Beaver" , "Marcus Boerger" , internals In-Reply-To: <017401c8d53e$de2a9380$4401a8c0@foxbox> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <028a01c8d4a7$18dd4380$4401a8c0@foxbox> <008601c8d524$41184e30$4401a8c0@foxbox> <017401c8d53e$de2a9380$4401a8c0@foxbox> Subject: Re: [PHP-DEV] OpenSSL and Phar From: pierre.php@gmail.com ("Pierre Joye") Hi, On Mon, Jun 23, 2008 at 4:38 PM, Steph Fox wrote: > We can sign and verify OpenSSL signatures without ext/openssl if we have the > library dependency. In other words, this (with the module checks in util.c > commented out) works fine: I finally took a look at why phar is not built shared as all other extension. It seems to force it only to be able to be run with no dep but still uses them if they are lately added (given that phar is now built statically, that makes little sense). But in fact, it does have deps against ext/zlib, ext/bz2 and now ext/openssl. You may want to use the library directly but as it will be easy and problemless for bz2 and zlib, it is going to be a pain for openssl. My main question now is why don't you actually reflect the (optional) dependencies? bz2 and zlib compression available will not be available if bz2 or zlib is not present, same for openssl. As testing has_xxx at runtime looks shiny and powerful, I don't think it is worth the pain. Cheers, -- Pierre http://blog.thepimp.net | http://www.libgd.org