On Fri, Feb 8, 2013 at 7:56 AM, Rasmus Lerdorf <ras...@lerdorf.com> wrote:
> On 02/07/2013 10:25 AM, Nikita Popov wrote: > > On Thu, Feb 7, 2013 at 2:39 PM, Christoph Rosse <cro...@2bepublished.at > >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. > > I think you may have glossed over the part where Keyur explained that > when running tons of Gearman workers under GearmanManager it makes > things a lot easier if we had a working way to set the proctitle. As he > explained, the pecl/proctitle way of doing it isn't sufficient because > it is likely to corrupt memory if you try to set the process title to > anything longer than 3 characters. The only way to fix that memory > corruption is to hook in earlier and that isn't something we can do from > an extension. > I didn't gloss over it, it just wasn't there at the time :) But yeah, that use case makes a lot of sense to me, so +1 on this. Nikita