This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component
Fabien Potencier 7fb03e0942 bug #13733 [2.3][Process] Fixed PhpProcess::getCommandLine() result (francisbesset)
This PR was squashed before being merged into the 2.3 branch (closes #13733).

Discussion
----------

[2.3][Process] Fixed PhpProcess::getCommandLine() result

The `PhpProcess::getCommandLine()` return `null` if `PhpProcess::start()` was not called.

```php
$process = new PhpProcess(<<<PHP
<?php echo "foobar";
PHP
);

$process->getCommandLine(); // return null
$process->start();
$process->getCommandLine(); // return the PHP binary path
```

This PR fix the problem.

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

Commits
-------

d0f1d32 [2.3][Process] Fixed PhpProcess::getCommandLine() result
2015-02-24 09:27:08 +01:00
..
BrowserKit renamed composer.phar to composer to be consistent with the Symfony docs 2015-02-08 08:41:14 +01:00
ClassLoader renamed composer.phar to composer to be consistent with the Symfony docs 2015-02-08 08:41:14 +01:00
Config Changed return type definition for some methods of NodeDefinition 2015-02-16 10:51:32 +01:00
Console [Console] explicit assertion for ArgvInput::getFirstArgument() with no arguments 2015-02-21 18:28:56 +01:00
CssSelector renamed composer.phar to composer to be consistent with the Symfony docs 2015-02-08 08:41:14 +01:00
Debug renamed composer.phar to composer to be consistent with the Symfony docs 2015-02-08 08:41:14 +01:00
DependencyInjection renamed composer.phar to composer to be consistent with the Symfony docs 2015-02-08 08:41:14 +01:00
DomCrawler renamed composer.phar to composer to be consistent with the Symfony docs 2015-02-08 08:41:14 +01:00
EventDispatcher renamed composer.phar to composer to be consistent with the Symfony docs 2015-02-08 08:41:14 +01:00
Filesystem renamed composer.phar to composer to be consistent with the Symfony docs 2015-02-08 08:41:14 +01:00
Finder [Finder] Fixed typo in phpdoc comment 2015-02-15 15:36:33 +01:00
Form [FrameworkBundle] Fix title and placeholder rendering in php form templates. 2015-02-10 17:14:04 +00:00
HttpFoundation [HttpFoundation] Fix getHost and getPort functions in docblock 2015-02-19 09:08:04 +01:00
HttpKernel fixed possible race condition when creating a directory 2015-02-10 16:07:19 +01:00
Intl renamed composer.phar to composer to be consistent with the Symfony docs 2015-02-08 08:41:14 +01:00
Locale [2.3] Cleanup deprecations 2015-01-03 10:22:29 +01:00
OptionsResolver renamed composer.phar to composer to be consistent with the Symfony docs 2015-02-08 08:41:14 +01:00
Process [2.3][Process] Fixed PhpProcess::getCommandLine() result 2015-02-24 09:27:06 +01:00
PropertyAccess [PropertyAccess] the property path constructor already implements the type check 2015-02-19 13:40:39 +01:00
Routing renamed composer.phar to composer to be consistent with the Symfony docs 2015-02-08 08:41:14 +01:00
Security renamed composer.phar to composer to be consistent with the Symfony docs 2015-02-08 08:41:14 +01:00
Serializer renamed composer.phar to composer to be consistent with the Symfony docs 2015-02-08 08:41:14 +01:00
Stopwatch renamed composer.phar to composer to be consistent with the Symfony docs 2015-02-08 08:41:14 +01:00
Templating renamed composer.phar to composer to be consistent with the Symfony docs 2015-02-08 08:41:14 +01:00
Translation renamed composer.phar to composer to be consistent with the Symfony docs 2015-02-08 08:41:14 +01:00
Validator FilesLoader - fix git conflict 2015-02-18 08:07:05 +01:00
Yaml renamed composer.phar to composer to be consistent with the Symfony docs 2015-02-08 08:41:14 +01:00