新增 Yar 协议章节并同步更新 Yar 扩展中文翻译 - #1065
Merged
Merged
Conversation
跟进英文文档修订 (php/doc-en#5815, EN-Revision 60ce1c5c7c): 新增《Yar 协议》章节、三种安装方式(PECL/PIE/源码)、 YAR_ERR_FORBIDDEN 常量,完善并发客户端与核心方法文档。
sy-records
reviewed
Aug 30, 2026
sy-records
approved these changes
Aug 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
摘要
跟进英文文档修订(php/doc-en#5815,已合入),同步更新
reference/yar/全部中文翻译,EN-Revision 对齐60ce1c5c7c。变更内容
1. 新增《Yar 协议》章节(置于安装章节之前)
YAR_ERR_FORBIDDEN常量(服务端鉴权失败错误码,此前手册缺失)2. 安装章节更新
pie install laruence/yar,含--enable-msgpack变体)以及从源码构建3. 示例与使用说明完善
Yar_Client::call()新增示例:魔法方法调用形式、显式按名调用形式,以及远程方法恰好叫call时为何需要显式调用Yar_Concurrent_Client补充设计动机(批量发起互相独立的调用,整体等待时间降为最慢单次调用)、仅支持 HTTP(S) 的原因(并发调用通过 curl multi-handle 接口发出,TCP/Unix socket 传输层未实现该能力)、callinfo数组组成,以及未设置 callback/error_callback 时的兜底行为(直接打印返回值 / 触发 PHP 警告)验证
doc-base/configure.php --with-lang=zh --with-partial=book.yar校验通过phd(PHP chunked XHTML 包)渲染无错误