Skip to content

Commit 83a7eef

Browse files
committed
$argc/$argv do not exist anymore in PHP 8.5
Even though they likely should, but most probably won't, see the discussion in php/php-src#20279
1 parent 68e8e56 commit 83a7eef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/random_audit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ function list_all_files(string $folder, string $extension = '*'): array
3838
return $fileList;
3939
}
4040

41-
if ($argc > 1) {
42-
$extensions = array_slice($argv, 1);
41+
if ($_SERVER['argc'] > 1) {
42+
$extensions = array_slice($_SERVER['argv'], 1);
4343
} else {
4444
$extensions = ['php', 'twig'];
4545
}

0 commit comments

Comments
 (0)