Skip to content

Update Stream dependency to work around SEGFAULT in legacy PHP < 5.4.28 and PHP < 5.5.12 #52

New issue

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

Merged
merged 1 commit into from
Dec 21, 2017

Conversation

clue
Copy link
Member

@clue clue commented Dec 21, 2017

We've been able to track this back to legacy PHP bug https://bugs.php.net/bug.php?id=61019 which was fixed via php/php-src@1ec83d4.

This update simply applies the upstream work around to avoid switching to unbuffered mode for pipe streams on PHP < 5.4.28 and PHP < 5.5.12 and thus avoids this issue on all versions. Technically, unbuffered reads aren't really needed here for any PHP version, but not using unbuffered reads shows a 10%-20% performance penalty.

Resolves / closes #40
Refs reactphp/stream#126
Builds on top of #50

@clue clue added this to the v0.5.1 milestone Dec 21, 2017
@WyriHaximus WyriHaximus merged commit 0b55c95 into reactphp:master Dec 21, 2017
@clue clue deleted the legacy-unbuffered branch December 21, 2017 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Segmentation Fault (core dumped)
3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy