Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70456 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75781 invoked from network); 30 Nov 2013 11:15:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Nov 2013 11:15:18 -0000 X-Host-Fingerprint: 80.4.21.210 cpc22-asfd3-2-0-cust209.1-2.cable.virginm.net Received: from [80.4.21.210] ([80.4.21.210:15143] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6C/31-03478-6C8C9925 for ; Sat, 30 Nov 2013 06:15:18 -0500 To: internals@lists.php.net,Nikita Popov Message-ID: <5299C8C2.2040706@php.net> Date: Sat, 30 Nov 2013 11:15:14 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 References: <4E.7B.51208.63ACD825@pb1.pair.com> <528E1AF6.9050201@php.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 80.4.21.210 Subject: Re: [PHP-DEV] RFC: phpdbg From: krakjoe@php.net (Joe Watkins) On 11/30/2013 10:41 AM, Nikita Popov wrote: > On Thu, Nov 21, 2013 at 3:38 PM, Joe Watkins wrote: > >> Morning, >> >> This is not an extension, it is a SAPI module. The build system >> does not support external SAPI modules, the implementation requires Zend >> API which is not exported (or wasn't, has since been patched). >> > > Independently from phpdbg, is there any particular (technical) reason that > prevents (zend?) extensions from registering SAPIs? Could we add something > for that to work? > > Nikita > (Sorry niki, you will get this twice ...) My head gets stuck in a loop when trying to think about it ... for a zend extension or, certainly, an extension, to be able to do anything at all, zend has to be initialized, it probably can work in some cases, but if the purpose of the sapi module is to direct how zend behaves then it won't work, I don't think ... Building against 5.6+ is not a problem anyway, we could maybe even patch embed and build against that for phpdbg in particular, but the problem isn't so much how difficult it is to write a makefile but how difficult it is to deploy any SAPI module apart from the sources. Nobody using windows does their own builds, for a start, although you can distribute binaries if you are a master of VC, which I'm not. Even on unix nobody builds from source, nobody builds the embed library, it's not enough to have a working build process because that doesn't get you into the repositories for the major distributions. I certainly would like to see improvements made such that in the future it is easier to deploy SAPI modules, it's not useful for phpdbg, but would be a very welcome change, for me ... Cheers Joe