Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60787 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88387 invoked from network); 8 Jun 2012 21:53:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jun 2012 21:53:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 74.125.82.170 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 74.125.82.170 mail-we0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:46408] helo=mail-we0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2B/51-14521-74472DF4 for ; Fri, 08 Jun 2012 17:53:12 -0400 Received: by werm13 with SMTP id m13so1057365wer.29 for ; Fri, 08 Jun 2012 14:53:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding:x-gm-message-state; bh=zLuCByO49RgrLlfJ3EMWsDevW2eP/2JSGMB4j5rvtKI=; b=SP0Xkta2Frld6Scdwe1fI364uFO1tG0nmSzf3FL8GNAWEDAF99Pin7idd+0Kw8bCE7 qAd1WuoBQGolOfFEcpRWa6GxOADcvOmKDyyihznmcNlmnB+oY8wPK9/XpqGGwX5C3o+M WfG2Gvolhv8RiyT0391yXcUO+hCZ84Hl6hhN9A/I3n6uJtanydtI8UtDXdXmngmCOXrj ryJ6thxe4jRvKPYb5dWoY1ZrppwKAFKQjLq8QbqW7iO82U6+kJBWrNdsJkMnIyYSt4yy n10m0LphhPQZeLG38lmi/Ys778pZjOrHDV2jF+43FObDSMbYTbR/rP9UScFGmSyhp3Ax enMA== Received: by 10.180.100.2 with SMTP id eu2mr3558521wib.10.1339192387872; Fri, 08 Jun 2012 14:53:07 -0700 (PDT) Received: from [192.168.48.158] ([87.213.42.218]) by mx.google.com with ESMTPS id eb8sm4030407wib.11.2012.06.08.14.53.05 (version=SSLv3 cipher=OTHER); Fri, 08 Jun 2012 14:53:06 -0700 (PDT) Message-ID: <4FD27434.5060102@lerdorf.com> Date: Fri, 08 Jun 2012 23:52:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: Robert Eisele CC: PHP internals References: In-Reply-To: X-Enigmail-Version: 1.5pre Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQlLKEQDt5FCMsuqYroZ6lOrPLrGm8hGdtDXc78x1QKVc6Q2DJxxxQhW1/Ar/f0kIrSwvRqt Subject: Re: [PHP-DEV] Static library binding From: rasmus@lerdorf.com (Rasmus Lerdorf) On 06/08/2012 11:38 PM, Robert Eisele wrote: > Hi, > > I have a kind of stupid question. I run PHP inside a fpm chroot jail for a > lot of vhosts, each vhost with it's own pool. Unfortunatley, I can't > connect to remote domains neither via the native file api (assumed > allow_url_fopen is on) nor via curl. I don't want to copy all the libs into > the jails. So, is there an easy way to link the needed dns libs statically > to PHP? For ease of use, this could be a nice configure parameter, like > "link it chroot compatible". It must, of course, be made clear that the > user is responsible for security updates of the libraries. A couple of intelligent hard links in your jails should take care of this. It isn't generally feasible to statically link everything because many libraries are only installed by default as shared and you can't link a shared library statically. You need to install a static version of each library you need first. -Rasmus