# 协程getCid 在上篇文章中,我们写了如下测试脚本: ```php get_cid()); } ``` 然后注册这个函数: ```cpp PHP_ME(study_coroutine_util, getCid, arginfo_study_coroutine_void, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC) ``` 然后编译、安装: ```shell make clean && make && make install ``` 编写如下脚本进行测试: ```php