8000 minor #24953 [Process] Workaround PHP bug #75515 in ProcessTest::test… · symfony/symfony@50c2a7c · GitHub
[go: up one dir, main page]

Skip to content

Commit 50c2a7c

Browse files
minor #24953 [Process] Workaround PHP bug #75515 in ProcessTest::testSimpleInputStream() (nicolas-grekas)
This PR was merged into the 3.3 branch. Discussion ---------- [Process] Workaround PHP bug #75515 in ProcessTest::testSimpleInputStream() | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Fixes tests accounting for a bug in PHP7.2RC6 Commits ------- 65ebe99 [Process] Workaround PHP bug #75515 in ProcessTest::testSimpleInputStream()
2 parents a050ee2 + 65ebe99 commit 50c2a7c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Symfony/Component/Process/Tests/ProcessTest.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,13 +1223,9 @@ public function testIteratorInput()
12231223

12241224
public function testSimpleInputStream()
12251225
{
1226-
if (\PHP_VERSION_ID === 70200 && \PHP_EXTRA_VERSION === 'RC6') {
1227-
$this->markTestSkipped('See bug #75515 in PHP 7.2RC6.');
1228-
}
1229-
12301226
$input = new InputStream();
12311227

1232-
$process = $this->getProcessForCode('echo \'ping\'; stream_copy_to_stream(STDIN, STDOUT);');
1228+
$process = $this->getProcessForCode('echo \'ping\'; echo fread(STDIN, 4); echo fread(STDIN, 4);');
12331229
$process->setInput($input);
12341230

12351231
$process->start(function ($type, $data) use ($input) {

0 commit comments

Comments
 (0)
0