pmmp / ext-pmmpthread

Fork of https://github.com/krakjoe/pthreads with a revamped API and PHP 8.1+ support
Other
81 stars 17 forks source link

Making closures sane (or attempting to) #97

Closed dktapps closed 1 year ago

dktapps commented 1 year ago

Closures are weirdly broken in pthreads in various ways.

The following restrictions must be imposed:

dktapps commented 1 year ago

I'm not sure this is even solvable with the static variables problem in mind.

dktapps commented 1 year ago

For some reason it did not occur to me to simply ban static variables in copied closures. Thank you @SOF3