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. Note that other SAPIs have the same need. The FPM SAPI does something similar and for similar reasons. Whenever you are running any sort of process manager, it is super useful to be able to tell what each individual process is doing at a particular time. -Rasmus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php