问题描述
我试图使用此指令在MacOS上安装Gearman PHP Extension for PHP 7.4:
tar xzf gearman-X.Y.tgz
cd gearman-X.Y
PHPize
./configure
make
make install
dev/gearman/gearman-1.1.2/PHP_gearman.c:1011:2: error: unkNown type name 'zend_object_value'
解决方法
似乎需要使用原始版本的php-configure。 就我而言:
./configure --with-php-config=/usr/local/Cellar/php/7.4.10/bin/php-config
解决问题