mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
fix ext_skel continue
"continue" inside switch is ambiguous, should be "continue 2".
This commit is contained in:
committed by
Christoph M. Becker
parent
1820f2f2f3
commit
a76661a4a2
@@ -138,7 +138,7 @@ function process_args($argv, $argc) {
|
||||
if (!isset($argv[$i + 1]) || ($argv[$i + 1]{0} == '-' && $argv[$i + 1]{1} == '-')) {
|
||||
error('Argument "' . $val . '" expects a value, none passed');
|
||||
} else if ($opt == 'dir' && empty($argv[$i + 1])) {
|
||||
continue;
|
||||
continue 2;
|
||||
}
|
||||
|
||||
$options[$opt] = ($opt == 'dir' ? realpath($argv[$i + 1]) . DIRECTORY_SEPARATOR : $argv[$i + 1]);
|
||||
|
||||
Reference in New Issue
Block a user