protocolbuffers/protobuf

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

Offen

#26.188 geöffnet am 03.03.2026

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)C++ (16.128 Forks)batch import
help wanted

Repository-Metriken

Stars
 (71.223 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 2T 11h) (185 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide