Skip to content

Pure PHP: cleanly ignore bits in the 10-byte varints with bit above LSB set.#26871

Draft
copybara-service[bot] wants to merge 1 commit intomainfrom
test_899065019
Draft

Pure PHP: cleanly ignore bits in the 10-byte varints with bit above LSB set.#26871
copybara-service[bot] wants to merge 1 commit intomainfrom
test_899065019

Conversation

@copybara-service
Copy link
Copy Markdown

@copybara-service copybara-service bot commented Apr 13, 2026

Pure PHP: cleanly ignore bits in the 10-byte varints with bit above LSB set.

Still error out if the MSB in that is set (implying it would be an 11+ byte varint).

This is not really functional change; today this flow is just silently 'weird' where readVarint64() can return a float64 since php silently promotes the type when it doesn't fit.

@copybara-service copybara-service bot force-pushed the test_899065019 branch 4 times, most recently from fe7a613 to 5cdef4d Compare April 13, 2026 21:09
@copybara-service copybara-service bot changed the title Pure PHP: Reject 10-byte varints with bit above the 64th bit set. Pure PHP: cleanly ignore bits in the 10-byte varints with bit above LSB set. Apr 13, 2026
…SB set.

Still error out if the MSB in that is set (implying it would be an 11+ byte varint).

This is not really functional change; today this flow is just silently 'weird' where readVarint64() can return a float64 since php silently promotes the type when it doesn't fit.

PiperOrigin-RevId: 899065019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant