Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Process] Fixed issue between process builder and exec #23498

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
Jul 13, 2017

Conversation

lyrixx
Copy link
Member

@lyrixx lyrixx commented Jul 13, 2017

Q A
Branch? 3.3
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes/
Fixed tickets #23495
License MIT
Doc PR -

@@ -272,6 +272,9 @@ public function getProcess()

$arguments = array_merge($this->prefix, $this->arguments);
$process = new Process($arguments, $this->cwd, $this->env, $this->input, $this->timeout, $this->options);
// to preserve the BC with symfony <3.3, we convert the array structure
// to a string structure to avoid the prefixing with the exec binary
Copy link
Member

Choose a reason for hiding this comment

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

s/binary/command

Copy link
Member Author

Choose a reason for hiding this comment

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

s/command/builtin shell/ ?

@nicolas-grekas
Copy link
Member

Thank you @lyrixx.

@nicolas-grekas nicolas-grekas merged commit 8cd1a2d into symfony:3.3 Jul 13, 2017
nicolas-grekas added a commit that referenced this pull request Jul 13, 2017
…rixx)

This PR was merged into the 3.3 branch.

Discussion
----------

[Process] Fixed issue between process builder and exec

| Q             | A
| ------------- | ---
| Branch?       | 3.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes/
| Fixed tickets | #23495
| License       | MIT
| Doc PR        | -

Commits
-------

8cd1a2d [Process] Fixed issue between process builder and exec
@lyrixx lyrixx deleted the process branch July 13, 2017 13:19
fabpot added a commit to sensiolabs/SensioGeneratorBundle that referenced this pull request Jul 17, 2017
…avier)

This PR was squashed before being merged into the 3.1.x-dev branch (closes #564).

Discussion
----------

Fix deprecation notice in test (ProcessBuilder)

Backward- and forward-compatible fix for

```
Remaining deprecation notices (1)

The Symfony\Component\Process\ProcessBuilder class is deprecated since version 3.4 and will be removed in 4.0. Use the Process class instead: 1x
    1x in KernelManipulatorTest::testAddToArray from Sensio\Bundle\GeneratorBundle\Tests\Manipulator
```

Relevant commits:
- symfony/process@201c3bd (PR symfony/symfony#23111)
- symfony/process@e34416d (PR symfony/symfony#21474)
- symfony/process@0743280 (PR symfony/symfony#23498)

I also considered the simpler test `\Symfony\Component\HttpKernel\Kernel::VERSION_ID >= 30400` but it seems less reliable (version constant _vs_ code, possibly different versions of `symfony/http-kernel` _vs_ `symfony/process`).

Commits
-------

5fe7d3e Fix deprecation notice in test (ProcessBuilder)
@fabpot fabpot mentioned this pull request Jul 17, 2017
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.

3 participants