WyriHaximus · GitHub

Conversation

@remicollet

Copy link Copy Markdown

Contributor

To avoid TypeError when overflow to float

Don't know if it worth to be fixed as deprecated component... BTW, minor patch

@WyriHaximus

@WyriHaximus

Copy link Copy Markdown

Member

@remicollet Thanks! Is the same bug also present in react/http? As far as I'm considered, it's deprecated but a small bug fix like this we can release. We just wouldn't communicate it

@remicollet

Copy link Copy Markdown

Contributor Author

@WyriHaximus in react/http, another fix is already applied

               $this->chunkSize = @\hexdec($hexValue);
               if (!\is_int($this->chunkSize) || \dechex($this->chunkSize) !== $hexValue) {

clue

@clue clue left a comment

Copy link Copy Markdown

Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@remicollet Thanks for the update to support PHP 8, changes LGTM! :shipit:

The change itself is indeed very similar to reactphp/http#391, so I agree it makes sense to merge as-is even if this component has been deprecated (#152 / #153).

clue

clue approved these changes Apr 7, 2021

@WyriHaximus

Copy link Copy Markdown

Member

WyriHaximus

@WyriHaximus

@WyriHaximus

Copy link Copy Markdown

Member

@remicollet

Read the original on github.com ↗