Skip to content

Commit a76661a

Browse files
hongboliucmb69
authored andcommitted
fix ext_skel continue
"continue" inside switch is ambiguous, should be "continue 2".
1 parent 1820f2f commit a76661a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/ext_skel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ function process_args($argv, $argc) {
138138
if (!isset($argv[$i + 1]) || ($argv[$i + 1]{0} == '-' && $argv[$i + 1]{1} == '-')) {
139139
error('Argument "' . $val . '" expects a value, none passed');
140140
} else if ($opt == 'dir' && empty($argv[$i + 1])) {
141-
continue;
141+
continue 2;
142142
}
143143

144144
$options[$opt] = ($opt == 'dir' ? realpath($argv[$i + 1]) . DIRECTORY_SEPARATOR : $argv[$i + 1]);

0 commit comments

Comments
 (0)