Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68549 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93898 invoked from network); 17 Aug 2013 20:13:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Aug 2013 20:13:23 -0000 Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.192.176 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.192.176 mail-pd0-f176.google.com Received: from [209.85.192.176] ([209.85.192.176:50677] helo=mail-pd0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 63/D1-18114-269DF025 for ; Sat, 17 Aug 2013 16:13:23 -0400 Received: by mail-pd0-f176.google.com with SMTP id q10so3484977pdj.35 for ; Sat, 17 Aug 2013 13:13:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=N3tiNlQyG+AanaxmlQ0CDSTdY5kizjCy+vpTTMUMdXA=; b=GO6pn8izFjEoYypnq2KM4xg7IB+Ndd32bNNECqdHM0ypJR9IxqRa/6PwjWjFmxBftY 3G1X++w8JhdW+MVRKACEK5L5+juj0UgLEQ4JBJgHSAFyXBge6fKpp6MZwigcE5v0q2MS UyrHVId3wQBndx9nlmDc77lY2Ms9dAcVkOA8i4VsrxUBX0JKLkyWV1Edi6pea3EUmjsT CVtsKsbjxDYQC4LCu9zZYrMy665lDeZZ2OT1y+vAHOOkvf3I+0iPCYnX7bhDS88Kqgtt lOWxzJpC2Qysh6Ue5F/SHzdE24toWub/900I6Qj4ac8hnp3Wvbf5IDaa53r1Na3Chz2F eUdw== X-Gm-Message-State: ALoCoQkhNJhgtLXwjKqJAXV8YqLt02+Vg4hsH8R4p9XPbwXppG2oNl7DuN9qQvcWArerUi6EI3sb MIME-Version: 1.0 X-Received: by 10.67.4.197 with SMTP id cg5mr5890807pad.10.1376702148972; Fri, 16 Aug 2013 18:15:48 -0700 (PDT) Sender: php@golemon.com Received: by 10.70.24.33 with HTTP; Fri, 16 Aug 2013 18:15:48 -0700 (PDT) X-Originating-IP: [173.252.71.189] In-Reply-To: References: Date: Fri, 16 Aug 2013 18:15:48 -0700 X-Google-Sender-Auth: KLqjuatZRBjvELuudzVN6rDIcfU Message-ID: To: J David Cc: PHP internals Content-Type: multipart/alternative; boundary=047d7b16013d8d25cc04e41a729a Subject: Re: [PHP-DEV] Interest in a "null" SAPI for embedding? From: pollita@php.net (Sara Golemon) --047d7b16013d8d25cc04e41a729a Content-Type: text/plain; charset=ISO-8859-1 Right, gotcha. I think ideally someone should put in the grunt work to do what you suggested: Build libphp5.so all the time, then link up php/ mod_php5.so/etc... against that as a shared system library (which in turn other programs or SAPIs could link against). I'm not sure if anyone has the time and patience to do that (for its relatively small return), but it'd get my vote. If nothing else, nice poetry selections. -Sara On Fri, Aug 16, 2013 at 5:14 PM, J David wrote: > To try it out, here's a hacky little Makefile you can use to build the > CLI SAPI against the null shlib: > > http://pastebin.com/3FxWhZn4 > > Resulting in: > > $ ls -l phpn > -rwxrwxr-x 1 me staff 113669 Aug 17 00:13 phpn > $ ldd phpn > phpn: > libphp5.so => /usr/local/php/5.6-dev/lib/libphp5.so (0x28080000) > libc.so.7 => /lib/libc.so.7 (0x28487000) > libcrypt.so.5 => /lib/libcrypt.so.5 (0x285ab000) > libpcre.so.3 => /usr/local/lib/libpcre.so.3 (0x285ce000) > librt.so.1 => /usr/lib/librt.so.1 (0x28633000) > libm.so.5 => /lib/libm.so.5 (0x28639000) > libthr.so.3 => /lib/libthr.so.3 (0x28653000) > libz.so.6 => /lib/libz.so.6 (0x28673000) > libssl.so.8 => /usr/local/lib/libssl.so.8 (0x28687000) > libcrypto.so.8 => /usr/local/lib/libcrypto.so.8 (0x286e1000) > libxml2.so.5 => /usr/local/lib/libxml2.so.5 (0x2885e000) > libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x2898c000) > liblzma.so.5 => /usr/lib/liblzma.so.5 (0x28a84000) > $ ./phpn -v > PHP 5.6.0-dev (cli) (built: Aug 17 2013 00:06:53) > Copyright (c) 1997-2013 The PHP Group > Zend Engine v2.6.0-dev, Copyright (c) 1998-2013 Zend Technologies > > Thanks! > --047d7b16013d8d25cc04e41a729a--