Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Process] Fix pipes handling#18066

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:2.7fromnicolas-grekas:fix-proc
Mar 10, 2016
Merged

Conversation

@nicolas-grekas
Copy link
Member

QA
Branch2.7
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#18015
LicenseMIT
Doc PR-

@nicolas-grekas
Copy link
MemberAuthor

Status: needs work

@nicolas-grekas
Copy link
MemberAuthor

GREEN!
Status: needs review
This PR fixes current failures on 2.7 and allows unskipping previously failing tests on Windows.
Ping@romainneutron

if (is_resource($input)) {
$this->input =$input;
}elseif (is_string($input)) {
$this->inputBuffer =$input;
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

If the string already fits in memory, there is no gain in putting it in aphp://temp stream

}
// Remove extra null chars returned by fread
if ('' !==$data) {
$read[$type] =rtrim($data,"\x00");
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

@romainneutron I can't reproduce trailing nul chars so I removed this. Can you?

Copy link
Contributor

Choose a reason for hiding this comment

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

This may happen e.g. if you decrypt a string usingmcrypt_decrypt.

@xabbuh
Copy link
Member

Amazing work@nicolas-grekas. I almost got mad when trying to fix this build failure. The change itself looks good but I am not too familiar with how the different systems handle processes.

$w =array($this->pipes[0]);

// let's have a look if something changed in streams
if (false ===$n = @stream_select($r,$w,$e,0,0)) {
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

no need to wait here as this is done in readAndWrite

@fabpot
Copy link
Member

Thank you@nicolas-grekas.

@fabpotfabpot merged commit3ab6c39 intosymfony:2.7Mar 10, 2016
fabpot added a commit that referenced this pull requestMar 10, 2016
This PR was merged into the 2.7 branch.Discussion----------[Process] Fix pipes handling| Q             | A| ------------- | ---| Branch        | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#18015| License       | MIT| Doc PR        | -Commits-------3ab6c39 [Process] Fix pipes handling
@nicolas-grekasnicolas-grekas deleted the fix-proc branchMarch 10, 2016 10:09
This was referencedMar 25, 2016
This was referencedMar 27, 2016
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

6 participants

@nicolas-grekas@xabbuh@fabpot@havvg@javiereguiluz@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp