We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I found some problem :( When I called toStream second time on message without any changes it's throws me Exception Reproduce instruction:
import "php.proto"; message Test { required bytes foo = 1; }
$data = new Test(); $data->setFoo("foo"); $data->toStream(); $data->toStream();
Will produce exception on second call toStream:
RuntimeException: Failed to write stream with 3 bytes in vendor/protobuf-php/protobuf/src/Stream.php:238
The text was updated successfully, but these errors were encountered:
#12 - Rewind stream before writing
c0da95f
Thanks for reporting @Mararok ! This should fix the problem : c0da95f
Sorry, something went wrong.
No branches or pull requests
I found some problem :(
When I called toStream second time on message without any changes it's throws me Exception
Reproduce instruction:
Will produce exception on second call toStream:
The text was updated successfully, but these errors were encountered: