本文最后更新于2019-08-30,已超过 1年没有更新,如果文章内容、图片或者下载资源失效,请留言反馈,我会及时处理,谢谢!
温馨提示:本文共538个字,读完预计2分钟。
linux环境下,使用phalpai框架的doc可能会得不到接口文档说明的问题,这种原因是因为ReflectionClass无法获取类注释 使用的是反射类ReflectionClass::getDocComment — 获取文档注释 需要开启php的zend OPcache设置
1.php.ini配置文件修改 找到 ;opcache.save_comments=1 修改为 opcache.save_comments=1 重启php
2.如果上述方法不行,修改/usr/local/php/etc/php.d/ext-opcache.ini文件
[opcache] zend_extension=opcache.so opcache.enable=1 opcache.memory_consumption=192 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=4000 opcache.revalidate_freq=60 opcache.save_comments=1 opcache.fast_shutdown=1 opcache.enable_cli=1 ;opcache.optimization_level=0
然后重启php