I tried to use this instruction to install Gearman PHP Extension for php 7.4 on MacOS:
tar xzf gearman-X.Y.tgz
cd gearman-X.Y
phpize
./configure
make
make install
and get error at ./configure
dev/gearman/gearman-1.1.2/php_gearman.c:1011:2: error: unknown type name 'zend_object_value'
It seems it need to use version original php-configure. For my case :
./configure --with-php-config=/usr/local/Cellar/php/7.4.10/bin/php-config
solve the trouble