Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65724 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64747 invoked from network); 7 Feb 2013 20:00:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Feb 2013 20:00:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=keyurgovande@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=keyurgovande@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.170 as permitted sender) X-PHP-List-Original-Sender: keyurgovande@gmail.com X-Host-Fingerprint: 209.85.212.170 mail-wi0-f170.google.com Received: from [209.85.212.170] ([209.85.212.170:35227] helo=mail-wi0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AE/56-23848-EB704115 for ; Thu, 07 Feb 2013 14:59:59 -0500 Received: by mail-wi0-f170.google.com with SMTP id hm11so63155wib.1 for ; Thu, 07 Feb 2013 11:59:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=+4be/IA8INvYp5sc9OmHJtRp1+f+uVtyKZzzSad7mv4=; b=IqQSxKjVufb0bw3Qty8c7XO35yTvk1QLpcZ5xO9Nstru+d51e0kSlw7yTIm+N2dgum icViKcxlignRwfCzmhJauUUjV0xTm1GTDyZeoebdzvyXeCL85xXiuGKwrc0CWH842FBE zX/WSYoSQTPVpLD36b5OrMcKR2z3iu9OgxmyLuzF3Oc7p7ItnOcUMWdRjo0j1gSG95I9 SC4RTRLIrBg8ed/rTfdgeZMhf7q0mcc69oC4inqrMtnZaZnvC7aPIerZ/bhZsh6JG+d/ JcUx4LYrbvqLo0f83lWQxZbZbG3Px2CiLUyl+dqtIBwtxlcV4uNEVk8i7HUUNb4SwR4D 8iJA== MIME-Version: 1.0 X-Received: by 10.180.80.35 with SMTP id o3mr14281609wix.9.1360267196220; Thu, 07 Feb 2013 11:59:56 -0800 (PST) Received: by 10.227.61.18 with HTTP; Thu, 7 Feb 2013 11:59:55 -0800 (PST) In-Reply-To: References: <2B76A3EF-66AC-4E73-B186-236E9C2AE891@gmail.com> <5113AE8F.4060402@2bepublished.at> Date: Thu, 7 Feb 2013 14:59:55 -0500 Message-ID: To: Nikita Popov Cc: Christoph Rosse , PHP internals Content-Type: multipart/alternative; boundary=f46d044287f207c65f04d527e3e9 Subject: Re: [PHP-DEV] [RFC] Improved Linux process title support in the CLI SAPI From: keyurgovande@gmail.com (Keyur Govande) --f46d044287f207c65f04d527e3e9 Content-Type: text/plain; charset=ISO-8859-1 Addressing a bunch of comments at once: 1) I've removed is_available and renamed the set/get methods to: cli_process_title_set/get. I've also removed the test dependencies on pcntl and posix. The patch is updated: https://gist.github.com/keyurdg/4728770 2) Updated the RFC's introduction section with more concrete details about why this is necessary In terms of doing this as an extension: the RFC addresses why this isn't possible. For folks who will not be using this feature, at worst they'll loose a few KB of memory: the amount needed to store the original argv and the original environ. On Thu, Feb 7, 2013 at 1:25 PM, Nikita Popov wrote: > On Thu, Feb 7, 2013 at 2:39 PM, Christoph Rosse >wrote: > > > why wouldn't this go into core? setting the name of the current > > php-process is definitely something everyone that develops php-cli > scripts > > could use. > > > I use a lot of php-cli scripts and I've never seen the need. Without having > hard data to back this up, I am pretty sure that this applies to nearly all > php-cli scripts. > > > > We should not base the decision of putting something into the core on > > assumptions on how many people are going to use the feature. > > > Obviously we should. Whether people will use it is pretty much the most > important aspect for deciding whether or not something should be added. > Even a trivial addition is a loose for the project if nobody is going to > use it. And this is no trivial addition. This seems to be quite a bit > system dependent and uses some odd methods like overwriting argv memory. > And on that note, it also has to copy the argv data if I got that right, > which is something it has to do always and not just when people are > actually using the feature ;) > > I'm not saying I'm against this feature. I'd just really appreciate it if > we could drop the good old "it doesn't matter if people are going to use > it" non-arguments and instead provide a bit more info for people like me, > who are not in the process-title-hacking business. I.e. what this is needed > for an why this is needed in core. E.g. what Arvid mentioned, that this is > useful when you are running many PHP-based daemons and want to distinguish > them. That's the kind of stuff I'd like to see in the RFC. > > Regarding core/non-core. People mentioned that this is not implementable as > an extension. That can be either solved by putting it into core or by > adding the necessary API hook ;) [I'm not arguing which variant is better, > just saying that not being implementable with current core does not mean > that we can't make it implementable :)] > > Thanks, > Nikita > --f46d044287f207c65f04d527e3e9--