php扩展安装之zlib

安装某些扩展时报这个configure错误

checking for the location of zlib… configure: error: memcache support requires ZLIB. Use –with-zlib-dir=<DIR> to specify prefix where ZLIB include and library are located

解决方案:搜索是否安装过zlib find /usr/local/Cellar/ -name zlib

1、已安装zlib情况:configure  新增选项 –with-zlib-dir=/usr/local/Cellar/zlib/1.2.11

2、未安装zlib情况:(未验证)https://www.cnblogs.com/brookin/archive/2013/01/13/2858636.html

PHP-Parser

PHP-Parser是PHP7内核作者之一nikic编写的将PHP源码生成AST的工具。

https://github.com/nikic/PHP-Parser