如果在编译php-src的时候,遇到如下问题:
1  | error: invalid 'asm': invalid operand prefix '%c'  | 
那么说明,编译器支持__asm__ goto但是不支持%c这个新特性。
那么,我们可以在执行完php-src的./configure脚本之后,在main/php_config.h文件的#define HAVE_ASM_GOTO 1后面加上#undef HAVE_ASM_GOTO。
或者找一个支持这种汇编写法的编译器。