Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51558 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8043 invoked from network); 3 Mar 2011 09:45:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Mar 2011 09:45:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=mozo@mozo.jp; spf=permerror; sender-id=permerror Authentication-Results: pb1.pair.com header.from=mozo@mozo.jp; sender-id=permerror Received-SPF: error (pb1.pair.com: domain mozo.jp from 209.85.161.42 cause and error) X-PHP-List-Original-Sender: mozo@mozo.jp X-Host-Fingerprint: 209.85.161.42 mail-fx0-f42.google.com Received: from [209.85.161.42] ([209.85.161.42:51787] helo=mail-fx0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C4/02-30734-4236F6D4 for ; Thu, 03 Mar 2011 04:45:10 -0500 Received: by fxm20 with SMTP id 20so873975fxm.29 for ; Thu, 03 Mar 2011 01:45:06 -0800 (PST) Received: by 10.223.86.140 with SMTP id s12mr1162687fal.145.1299145506180; Thu, 03 Mar 2011 01:45:06 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.73.202 with HTTP; Thu, 3 Mar 2011 01:44:46 -0800 (PST) In-Reply-To: <4D6F5C79.5070104@gmail.com> References: <4D6ECD36.1070804@gmail.com> <4D6F5C79.5070104@gmail.com> Date: Thu, 3 Mar 2011 18:44:46 +0900 Message-ID: To: =?ISO-8859-1?Q?=C1ngel_Gonz=E1lez?= Cc: PHP Developers Mailing List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] RFC: built-in web server in CLI. From: mozo@mozo.jp (Moriyoshi Koizumi) Hi, 2011/3/3 =C1ngel Gonz=E1lez : > Moriyoshi Koizumi wrote: >>> Regarding the patch (https://gist.github.com/835698): >>> I don't see a switch to disable the internal parse on configure. >> I don't see any obvious reason it should be able to be turned off >> through the build option. =A0The only problem is binary size increase, >> which I guess is quite subtle. > Seems sufficiently different from normal cli. I've seen a number of people arguing on the same, but I'd rather have them both in for the sake of simplicity. As discussed when the CLI version of PHP was born, multiple PHP binaries actually have confused the users to a certain degree. >>> The patch looks messy as it splits main in two functions, so it gets >>> hard to follow, >>> but is probably good overall. >> Assuming you are mentioning about the option parsing portion of the >> code, yes, it's a bit messy, but I had to do so because runtime >> initialization procedure is very different from the ordinary CLI. > Wasn't critizising you. It's a limitation of unified diffs, which can't s= ay > "move this bunch of code 25 lines down". A bit hard to follow, but > aparently good. I would have put a whitespace-ignoring diff as well ;-) >>> Any special reason to disable it on PHP_CLI_WIN32_NO_CONSOLE ? >> cli-win32 version of PHP doesn't have an associated console and is >> supposed to use to create applications without console interactions >> (i.e. GUI). =A0So, It doesn't make sense to enable this feature for it. > With the embedded web server, the interaction would be done via the brows= er. It is not intended to be daemonized at all since it's just a development web server. To do more, Apache should work great then. Regards, Moriyoshi > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >