symfony/symfony — pull request #8123 by mmucklo (2013-05-23 08:15:29+00:00)
Title: [Process] Fixed issue where $env or $_ENV can contain array values

See Ticket #7196 and this pull request:

https://github.com/symfony/symfony/pull/7354

There are cases where $env or $_ENV can contain a value that is an array.

This will cause Process to throw an Array to String conversion exception.

Initially I submitted a patch of Process.php, however Fabien indicated that it shouldn't be fixed there (see original pull request).

Before recently, a simple work around would be to set:

register_argc_argv = On

in php.ini, however with recent changes, this seems to no longer work.

```
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | 7196
| License | MIT
| Doc PR | none
```