Skip to content

Handle stream_socket_get_name return "\0" #92

Description

@andig

https://github.com/reactphp/socket/blob/master/src/Connection.php#L44 should not only check for falsebut also for "\0" according to https://bugs.php.net/bug.php?id=74458 https://bugs.php.net/bug.php?id=74556.

Discovered through reactphp/http#160 (comment). Since ratchet still uses 0.5 it would be great if this could also be back ported to 0.5...0.7.

Activity

  1. clue commented on Apr 17, 2017

    @clue
    Member

    Thanks for spotting and filing both an upstream bug report and this issue!

    This is something I've also spotted a couple of months ago when these methods have been added but didn't get to look into this in-depth. I agree that this is something that should be fixed (worked around) here and PRs would be much appreciated 👍

    I'd like to address this in the master branch first and then check whether we should either backport this to previous release branches or (which I prefer) encourage consumers to upgrade to the latest version if this is reasonable 👍

  2. andig commented on Apr 17, 2017

    @andig
    ContributorAuthor

    I can add the PR for you and potentially even a test (need to check). I'd need it backported too since I'm using ppm and react/http and ratchet which forces me to stay on 0.5 for time being due to ratchet.

  3. WyriHaximus commented on Apr 17, 2017

    @WyriHaximus
    Member

    @andig that would be most appreciated 👍

  4. andig commented on Apr 17, 2017

    @andig
    ContributorAuthor

    No idea about the tests, sorry. If you want more PRs for the different branches please let me know.

  5. clue commented on Apr 17, 2017

    @clue
    Member

    I'd need it backported too since I'm using ppm and react/http and ratchet which forces me to stay on 0.5 for time being due to ratchet.

    I've just updated ratchetphp/Ratchet#485 to make sure Ratchet will also support Socket v0.7 and v0.6 :shipit:

  6. added this to the v0.8.0 milestone on May 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions