centraldesktop / Protobuf-PHP

PHP implementation of Google's Protocol Buffers with a protoc plugin compiler
http://drslump.github.com/Protobuf-PHP/
MIT License
27 stars 25 forks source link

bugfix() Make sure we read the photos from protoc until EOF #5

Closed treyhyde closed 9 years ago

treyhyde commented 9 years ago

PHP silently changes the read size back down to some ini configured max. In this case, 1MB read size was being converted to 8k. Descriptors over 8k were silently dying. This use of fread was bad practice anyway.