Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78593 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92765 invoked from network); 3 Nov 2014 21:22:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Nov 2014 21:22:24 -0000 Authentication-Results: pb1.pair.com header.from=bobwei9@hotmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=bobwei9@hotmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain hotmail.com designates 65.55.111.109 as permitted sender) X-PHP-List-Original-Sender: bobwei9@hotmail.com X-Host-Fingerprint: 65.55.111.109 blu004-omc2s34.hotmail.com Received: from [65.55.111.109] ([65.55.111.109:58842] helo=BLU004-OMC2S34.hotmail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5A/E2-10620-F02F7545 for ; Mon, 03 Nov 2014 16:22:23 -0500 Received: from BLU436-SMTP87 ([65.55.111.71]) by BLU004-OMC2S34.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Mon, 3 Nov 2014 13:22:21 -0800 X-TMN: [uy7cWD3F50JydSZvoPbVABI8m0uOdlnd] X-Originating-Email: [bobwei9@hotmail.com] Message-ID: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) In-Reply-To: Date: Mon, 3 Nov 2014 22:22:14 +0100 CC: PHP Developers Mailing List Content-Transfer-Encoding: quoted-printable References: To: Derick Rethans X-Mailer: Apple Mail (2.1990.1) X-OriginalArrivalTime: 03 Nov 2014 21:22:18.0831 (UTC) FILETIME=[3F782DF0:01CFF7AC] Subject: Re: [PHP-DEV] PHPDBG scope From: bobwei9@hotmail.com (Bob Weinand) > Am 03.11.2014 um 22:03 schrieb Derick Rethans : >=20 > Hi, >=20 > This is based on an email conversation between Joe Watkins and me. I=20= > asked him > what the original scope of phpdbg was, and I've summarized his reply=20= > here: >=20 > - PHPDBG was originally envisioned as a "gdb" for the Zend VM, with = gdb=20 > like commands to debug, and step through code. > - Support for breaking on an opline, something that no userland PHP=20 > users would need. > - Support for breaking on lines, was an additional step later. > - For PHP programmers, which spend most of their time at the console. > - Not "intended to cover PHP's primary domain of HTTP requests=E2=80=9C.= That was the initial purpose of phpdbg, correct. But now it has outgrown = of itself, I think. But also, to begin something, you need concrete goals. In this case that = was nice tiny debugger for cli PHP users and devs. Very true. > Then later, they "documented a way that you could use it to emulate an=20= > HTTP request, by setting those superglobals and executing your = index.php=20 > - your code doesn't know the difference between a real request, and a=20= > cli-like script with the same super globals set." >=20 > And Joe indicates, that with that addition, the "flood gates opened". = He=20 > also said that he "would still like to remain in that narrow scope,=20 > phpdbg is still useful in it's current (pre xml stuff) form." and that=20= > it was never meant to "usurp xdebug", as "that is not where we were=20 > aiming, and it's an extremely unrealistic thing to even want.=E2=80=9C It wasn=E2=80=99t with that addition the "flood gates opened". This = addition came alongside with the initial xml protocol development = (though in a separate branch), because I thought, if users are going to = debug web apps, they most likely will need that. And true, we aren=E2=80=99t trying to usurp xdebug, it was planned to = coexist. Nothing like competition, but it was asked that we make it = debuggable by an IDE. The xml protocol stuff just was a consequence of = that request, to make it possible. > And I very much agree that the above bullet points, is what phpdbg's=20= > scope should be. Also, why do we want an arbitrarily narrowed scope? > Joe, if I got this wrong, then please say so :-) >=20 > cheers, > Derick Regards, Bob=