Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70460 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31409 invoked from network); 1 Dec 2013 16:48:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Dec 2013 16:48:05 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; 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 mail.experimentalworks.net Received: from [217.114.215.10] ([217.114.215.10:39747] helo=mail.experimentalworks.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9E/50-26742-2486B925 for ; Sun, 01 Dec 2013 11:48:03 -0500 Received: from [192.168.2.20] (ppp-93-104-7-216.dynamic.mnet-online.de [93.104.7.216]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: johannes@schlueters.de) by mail.experimentalworks.net (Postfix) with ESMTPSA id 6555C45000; Sun, 1 Dec 2013 17:48:21 +0100 (CET) To: Nikita Popov Cc: Joe Watkins , PHP internals In-Reply-To: References: <4E.7B.51208.63ACD825@pb1.pair.com> <528E1AF6.9050201@php.net> Content-Type: text/plain; charset="UTF-8" Date: Sun, 01 Dec 2013 17:47:36 +0100 Message-ID: <1385916456.26641.46.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] RFC: phpdbg From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Sat, 2013-11-30 at 11:41 +0100, Nikita Popov wrote: > Independently from phpdbg, is there any particular (technical) reason that > prevents (zend?) extensions from registering SAPIs? Could we add something > for that to work? yes - simplyas the SAPI is the thing starting PHP. Etensions are loaded after ... what is possible is using embed SAPI to get a PHP lib and link that to some SAPI. phpsrc$ ./configure --enable-embed && make && make install sapi$ gcc -osuper_php -lphp some_sapi.c The extra stuff in embed can easily be ignored, the generated libphp.so (or liphp.a when using --enable-embed=static) offers all symbols needed. johannes