You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
require"php/Foo/HelloRequest.php";
$req = new \Foo\HelloRequest;
$req->setId(8); // must be even$req->getId(); // as expected, returns 8$req->setVersion('1'); // no matter the value set for 'version'$req->getId(); // wrong, returns 9
What did you expect to see
get as i set
What did you see instead?
get as i set ... +1
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
Anything else we should know about your project / environment
Regarding php-ext, I have tried installing the pre-built version with dnf install, and installing the 3.19.3 version directly from source.
tried composer package 'google/protobuf' instead of php-ext 'protobuf', bug gone.
change least field type from uint32 to uint64 / string, bug gone.
add/remove one field in this message, bug gone.
The text was updated successfully, but these errors were encountered:
What version of protobuf and what language are you using?
Version: 3.19.1
Language: PHP
What operating system (Linux, Windows, ...) and version?
Linux(CentOS 8,4.18.0-305.19.1.el8_4.x86_64)
What runtime / compiler are you using (e.g., python version or gcc version)
PHP 7.4.27 (cli) (built: Dec 14 2021 17:17:06) ( NTS )
What did you do?
Steps to reproduce the behavior:
the keys are:
uint32
.optional
modifier.protoc --version # libprotoc 3.19.1 protoc --php_out=php demo.proto
What did you expect to see
get as i set
What did you see instead?
get as i set ... +1
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
Anything else we should know about your project / environment
dnf install
, and installing the 3.19.3 version directly from source.uint32
touint64
/string
, bug gone.The text was updated successfully, but these errors were encountered: