Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38567 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79810 invoked from network); 24 Jun 2008 09:26:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jun 2008 09:26:57 -0000 Authentication-Results: pb1.pair.com header.from=steph@phparch.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=steph@phparch.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain phparch.com from 64.99.136.167 cause and error) X-PHP-List-Original-Sender: steph@phparch.com X-Host-Fingerprint: 64.99.136.167 smtprelay-virgin0167.hostedemail.com Linux 2.5 (sometimes 2.4) (4) Received: from [64.99.136.167] ([64.99.136.167:43394] helo=smtprelay-virgin.hostedemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 81/43-62551-FDDB0684 for ; Tue, 24 Jun 2008 05:26:57 -0400 Received: from filter.hostedemail.com (ff-bigip1 [10.5.19.254]) by smtprelay08.hostedemail.com (Postfix) with SMTP id 769AF22A043; Tue, 24 Jun 2008 09:26:53 +0000 (UTC) X-SpamScore: 1 Received: from foxbox (host86-143-244-1.range86-143.btcentralplus.com [86.143.244.1]) (Authenticated sender: steph.fox) by omf09.hostedemail.com (Postfix) with ESMTP; Tue, 24 Jun 2008 09:26:52 +0000 (UTC) Message-ID: <004201c8d5dc$a1d23b10$4401a8c0@foxbox> Reply-To: "Steph Fox" To: "Greg Beaver" Cc: "Pierre Joye" , "Marcus Boerger" , "internals" References: <028a01c8d4a7$18dd4380$4401a8c0@foxbox> <008601c8d524$41184e30$4401a8c0@foxbox> <486043CF.6030103@chiaraquartet.net> Date: Tue, 24 Jun 2008 10:28:11 +0100 Organization: php|architect MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-session-marker: 73746570682E666F78 X-Spam-Summary: 2,0,0,1b16737b917c90ac,db91dfb2344a6b94,steph@phparch.com,,RULES_HIT:355:379:539:540:541:542:543:567:599:601:973:988:989:1155:1156:1260:1277:1311:1313:1314:1345:1437:1515:1516:1518:1534:1541:1587:1593:1594:1711:1730:1747:1766:1792:2073:2075:2078:2393:2553:2559:2562:2828:3027:3354:3865:3866:3867:3868:3869:3870:3871:3872:3873:3874:4037:4250:5007:6117:6119:6261:7875:7903,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:none,DNSBL:none Subject: Re: [PHP-DEV] OpenSSL and Phar From: steph@phparch.com ("Steph Fox") Hi Greg, > I must be going crazy. Is there an actual problem that needs solving? Yep, solved yesterday. > You're saying that a user who improperly installs php_openssl.dll (i.e. > does not follow instructions and set up ssleay.dll and libeay.dll) should > magically be able to use phar with openssl? No? > On windows, the user would have (by default) phar static and openssl > dynamic. Only if they run PHP 5.3. Remember I'm still, piece by piece, putting together a version for PECL/5.2 - and also remember that it's 50-50 whether phar goes out as static or as shared even in 5.3. >To enable openssl signing, you simply need to enable php_openssl.dll, which >means setting up a few dlls as described on the installation page for >openssl. Not so simple. You have to put a weird file in a weird place for ext/openssl to operate at all. The docs on that are appalling (everywhere), it took me 15 minutes to work out what was wrong with it... If you use phar-ssl you don't have any of that kind of thing to worry about. If you have ext/openssl installed you don't need to use phar-ssl. > Where is the problem? Any user who has control over their windows build > and wishes to compile in openssl statically for maximum performance may do > so, but I would challenge any user trying to eke out such a small > performance gain would be better served by using unix, where PHP is just > plain faster no matter what. I still think Option 2 is wide open - i.e. get rid of the native openssl calls in ext/phar and have openssl support only when ext/openssl is available. If the performance gain isn't an issue then the only advantage of having that code in phar is to avoid a mildly problematic ext/openssl setup. - Steph