Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68575 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38247 invoked from network); 19 Aug 2013 23:49:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Aug 2013 23:49:41 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.215.10 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.215.10 unknown Received: from [217.114.215.10] ([217.114.215.10:53723] helo=config.schlueters.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 31/DA-22131-01FA2125 for ; Mon, 19 Aug 2013 19:49:36 -0400 Received: from [192.168.2.20] (host-188-174-205-10.customer.m-online.net [188.174.205.10]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: johannes@schlueters.de) by config.schlueters.de (Postfix) with ESMTPSA id 547F951F08; Tue, 20 Aug 2013 01:49:33 +0200 (CEST) To: J David Cc: Michael Wallner , Sara Golemon , PHP internals In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Tue, 20 Aug 2013 01:49:14 +0200 Message-ID: <1376956154.4056.63.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Interest in a "null" SAPI for embedding? From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Mon, 2013-08-19 at 19:17 -0400, J David wrote: > > To stick with your example, of CLI and mod_php -- a good choice as > it's likely the most common combo -- when linking to a common > libphp5.so, the recommended methodology would be to build in only the > functionality required by both, then load the rest as extensions from > php-cli.ini or php.ini, respectively. This seems like the way it is > generally done anyway? > > Is doing it this other way a thing that people actually do? Ah, there's another thing to mind: Extensions can be marked as "cli extensions", if statically compiled they become only part of the CLI binary, not other SAPIs. Think readline & pcntl. johannes