编程语言
首页 > 编程语言> > PHP7.4 arm环境编译安装报错 invalid ‘asm’: invalid operand prefix ‘%c’

PHP7.4 arm环境编译安装报错 invalid ‘asm’: invalid operand prefix ‘%c’

作者:互联网

In file included from /usr/local/php7/src/php-7.4.22/Zend/zend.h:356:0,
                 from /usr/local/php7/src/php-7.4.22/main/php.h:33,
                 from /usr/local/php7/src/php-7.4.22/ext/standard/array.c:24:
/usr/local/php7/src/php-7.4.22/ext/standard/array.c: In function 'zif_array_sum':
/usr/local/php7/src/php-7.4.22/Zend/zend_operators.h:674:2: error: invalid 'asm': invalid operand prefix '%c'

bug地址: https://bugs.php.net/bug.php?id=81124
在这里插入图片描述
解决办法
修改Zend/zend_operators.h文件中ZEND_USE_ASM_ARITHMETIC 值均为0即可。

# define ZEND_USE_ASM_ARITHMETIC 1
#else
# define ZEND_USE_ASM_ARITHMETIC 0
#endif

标签:php7,22,PHP7.4,invalid,报错,usr,7.4,php,local
来源: https://blog.csdn.net/oZhengTuoJiaSuo/article/details/122325335