You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The segmentation fault comes from the fact that the 500000 is considered as a long and tries to convert it to a ressource (old legacy code).
IMO it would just raise a warning, return false, and I should remove the long argument type in order to be more strict. Need to digg in order to be sure what usecase could be possible for a ressource -> long
Please, tell me if it's OK with the timer functions
Activity
ichiriac commentedon Mar 8, 2017
Hi @jilieryuyi,
I'll take a look at this issue tonight
jilieryuyi commentedon Mar 8, 2017
Has it been fixed? This bug still happen after recompile
ichiriac commentedon Mar 8, 2017
Not yet, the night may be long :)
ichiriac commentedon Mar 8, 2017
Just a question, if you want to use it as a timer, why don't you use
event_timer_newinstead ofevent_new:The segmentation fault comes from the fact that the 500000 is considered as a long and tries to convert it to a ressource (old legacy code).
IMO it would just raise a warning, return false, and I should remove the long argument type in order to be more strict. Need to digg in order to be sure what usecase could be possible for a ressource -> long
Please, tell me if it's OK with the timer functions
jilieryuyi commentedon Mar 8, 2017
Just a test ! thank you for your answer !
#14 reproduce the error
#14 use Z_RES_P instead of Z_LVAL_P
#14 replace Z_LVAL_P with Z_RES_P on any ressource
ichiriac commentedon Mar 9, 2017
Hi @jilieryuyi,
It's fixed, could help with snippets like these. You can make PHPT files here : https://github.com/expressif/pecl-event-libevent/tree/master/tests and send me a pull request, it would greatly improve the library stability