Skip to content

Commit 713f099

Browse files
bug symfony#61645 Replace backtick operator, deprecated in PHP 8.5, with shell_exec() (iluuu1994)
This PR was merged into the 6.4 branch. Discussion ---------- Replace backtick operator, deprecated in PHP 8.5, with shell_exec() These two are exactly equivalent. https://github.com/php/php-src/blob/d246584ae7d2d778b204e0a179840fdf237f3b97/Zend/zend_compile.c#L10924C25-L10927 https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_backticks_as_an_alias_for_shell_exec | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | - | License | MIT Commits ------- 0e49af9 Replace backtick operator, deprecated in PHP 8.5, with shell_exec()
2 parents 070843e + 0e49af9 commit 713f099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/PhpUnit/bin/simple-phpunit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
}
192192

193193
$info = [];
194-
foreach (explode("\n", `$COMPOSER info --no-ansi -a -n phpunit/phpunit "$PHPUNIT_VERSION.*"`) as $line) {
194+
foreach (explode("\n", shell_exec("$COMPOSER info --no-ansi -a -n phpunit/phpunit \"$PHPUNIT_VERSION.*\"")) as $line) {
195195
$line = rtrim($line);
196196

197197
if (!$info && preg_match('/^versions +: /', $line)) {

0 commit comments

Comments
 (0)