protocolbuffers/protobuf

PHP: C extension has undocumented "append" function that has no package parity.

開放

#26,188 建立於 2026年3月3日

 (1 則留言) (0 個反應) (0 位負責人)C++ (16,128 個分叉)batch import
help wanted

倉庫指標

星標
 (71,223 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

What version of protobuf and what language are you using? Version: Any/all. Has existed from the introduction of the package Language: PHP

What did you do? https://github.com/protocolbuffers/protobuf/blob/main/php/ext/google/protobuf/array.c#L245-L263

RepeatedField and the now removed Internal\RepeatedField in the C extension have an append() function that has never had a matching append() function in the php-only package, which can cause static analysis and type confusion.

貢獻者指南