File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -350,6 +350,19 @@ Use :method:`Symfony\\Component\\Process\\Process::disableOutput` and
350
350
Moreover, you could not pass a callback to the ``start() ``, ``run() `` or ``mustRun() ``
351
351
methods or use ``setIdleTimeout() ``.
352
352
353
+ Finding the Executable PHP Binary
354
+ ---------------------------------
355
+
356
+ This component also provides a utility class called
357
+ :class: `Symfony\\ Component\\ Process\\ PhpExecutableFinder ` which returns the
358
+ absolute path of the executable PHP binary available on your server::
359
+
360
+ use Symfony\Component\Process\PhpExecutableFinder;
361
+
362
+ $phpBinaryFinder = new PhpExecutableFinder();
363
+ $phpBinaryPath = $phpBinaryFinder->find();
364
+ // $phpBinaryPath = '/usr/local/bin/php' (the result will be different on your computer)
365
+
353
366
.. _`Symfony Issue#5759` : https://github.com/symfony/symfony/issues/5759
354
367
.. _`PHP Bug#39992` : https://bugs.php.net/bug.php?id=39992
355
368
.. _`exec` : https://en.wikipedia.org/wiki/Exec_(operating_system)
You can’t perform that action at this time.
0 commit comments