# un-deprecating ticks ?

- Thread: https://externals.io/message/43411
- Original archive: https://news-web.php.net/php.internals/43411
- Started by Arnaud Le Blanc on 2009-03-19T13:32:22+00:00
- Messages: 6
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #43411 — Arnaud Le Blanc — 2009-03-19T13:32:22+00:00

URL: https://externals.io/message/43411#43411

Hi,

After having seen some complaints about ticks being deprecated I'm
wondering if they could be un-deprecated for now.

Ticks are used by the pcntl extension to call signal handlers when
signals are triggered. I added some functions as an alternative, but
this does not covers all use cases (and forces a code change).

When searching bug reports about ticks, one can feel the ticks to be
broken (and this is why they have been deprecated). However, looking in
depth at these bugs and viewing what caused them and how they have been
fixed does not show really bad things about ticks.

Actually one thing is broken (and is marked as such in the
documentation), tick functions do not work in ZTS, this looks fixable.

Any thoughts on removing the deprecation warning for now ? (at least
until a replacement is found).

Sorry for posting this so close to the freeze.

Regards,

Arnaud

---

## #43470 — Lukas Kahwe Smith — 2009-03-25T19:05:16+00:00

URL: https://externals.io/message/43411#43470 · In reply to: #43411

> Hi,
>
> After having seen some complaints about ticks being deprecated I'm
> wondering if they could be un-deprecated for now.
>
> Ticks are used by the pcntl extension to call signal handlers when
> signals are triggered. I added some functions as an alternative, but
> this does not covers all use cases (and forces a code change).
>
> When searching bug reports about ticks, one can feel the ticks to be
> broken (and this is why they have been deprecated). However, looking  
> in
> depth at these bugs and viewing what caused them and how they have  
> been
> fixed does not show really bad things about ticks.
>
> Actually one thing is broken (and is marked as such in the
> documentation), tick functions do not work in ZTS, this looks fixable.
>
> Any thoughts on removing the deprecation warning for now ? (at least
> until a replacement is found).
>
> Sorry for posting this so close to the freeze.


So what is it going to be?
I remember everybody was happy when it was deprecated. But I think  
everybody ran under the impression that ticks is evil.
Indeed the only open ticket is #47198, which is the doc bug. Or did we  
close tons of ticks bugs because it was deprecated?

regards,
Lukas Kahwe Smith
mls@pooteeweet.org

---

## #43472 — Kalle Sommer Nielsen — 2009-03-25T20:20:48+00:00

URL: https://externals.io/message/43411#43472 · In reply to: #43470

2009/3/25 Lukas Kahwe Smith <mls@pooteeweet.org>:
>
> 
>
> > […]
>
>
> So what is it going to be?
> I remember everybody was happy when it was deprecated. But I think everybody
> ran under the impression that ticks is evil.
> Indeed the only open ticket is #47198, which is the doc bug. Or did we close
> tons of ticks bugs because it was deprecated?

If ticks will be fixable in ZTS then I will be +1 for fixing them and
undeprecating them, as its not a new feature but a bug fix.

>



-- 
Kalle Sommer Nielsen
kalle@php.net

---

## #43476 — Arnaud Le Blanc — 2009-03-26T00:30:52+00:00

URL: https://externals.io/message/43411#43476 · In reply to: #43470

On Wed, 2009-03-25 at 20:05 +0100, Lukas Kahwe Smith wrote: 
> 
> 
> > […]
> 
> 
> So what is it going to be?
> I remember everybody was happy when it was deprecated. 

The only thread I found about that is here:
http://marc.info/?l=php-internals&m=121442930703916&w=2

> Indeed the only open ticket is #47198, which is the doc bug. Or did we  
> close tons of ticks bugs because it was deprecated?

I've seen one bug marked as wont fix for this reason. I've searched for
"ticks" and looked at the last few pages of bugs, many was really bogus,
or documentation issues. Some was related to `register_tick_function()`
and are fixed. I seen nothing really bad or related to the engine.

The ZTS issue looks fixable, this is a crash when using 
 `register_tick_function()` due to the list of functions not being initialized
in the threads.

Regards,

Arnaud

---

## #43478 — Lukas Kahwe Smith — 2009-03-26T07:51:18+00:00

URL: https://externals.io/message/43411#43478 · In reply to: #43476

> 
> > […]
>
> The only thread I found about that is here:
> http://marc.info/?l=php-internals&m=121442930703916&w=2
>
> > […]
>
> I've seen one bug marked as wont fix for this reason. I've searched  
> for
> "ticks" and looked at the last few pages of bugs, many was really  
> bogus,
> or documentation issues. Some was related to `register_tick_function()`
> and are fixed. I seen nothing really bad or related to the engine.
>
> The ZTS issue looks fixable, this is a crash when using
> `register_tick_function()` due to the list of functions not being  
> initialized
> in the threads.


It seems to me like at this point its your call. You are the one that  
has dug into this. If you feel you can fix things then I guess its  
your call to undeprecate ticks. As for the bogus bugs, this maybe  
indicate that we need to do some more work on the documentation. Could  
you look into this as well? Overall we should do our dearest to  
prevent that even stupid users can crash PHP and if something can too  
easily be made to still crash PHP, maybe its something we shouldnt have.

regards,
Lukas Kahwe Smith
mls@pooteeweet.org

---

## #43508 — Arnaud Le Blanc — 2009-03-27T02:42:58+00:00

URL: https://externals.io/message/43411#43508 · In reply to: #43478

> 
> 
> > […]
> 
> 
> It seems to me like at this point its your call. You are the one that  
> has dug into this. If you feel you can fix things then I guess its  
> your call to undeprecate ticks. As for the bogus bugs, this maybe  
> indicate that we need to do some more work on the documentation. Could  
> you look into this as well? Overall we should do our dearest to  
> prevent that even stupid users can crash PHP and if something can too  
> easily be made to still crash PHP, maybe its something we shouldnt have.
> 

Ok, so I reverted the deprecation warning and fixed the ZTS issue.
I will take a look at the documentation.

Regards,

Arnaud
