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

I cant install in php8.1 #129

Closed pntrinh closed 1 year ago

pntrinh commented 1 year ago

/root/ext-pmmpthread-4.1.1/src/copy.c:296:2: error: 'for' loop initial declarations are only allowed in C99 mode for (int i = 0; i < num_dynamic_func_defs; i++) { ^

then exit.

dktapps commented 1 year ago

4.1.1 is outdated, and by the sound of it, so is your compiler. php-src requires a C99 compiler since PHP 8.0 or so.

pntrinh commented 1 year ago

ah I install newest version with this error so I tried change to 4.1.1 and it same issue