com php-src: fix ext_skel continue: ext/ext_skel.ph p
| From: | Christoph Michael Becker | Date: | Wed, 18 Jul 2018 18:49:12 +0000 |
| Subject: | com php-src: fix ext_skel continue: ext/ext_skel.ph p | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-102604@lists.php.net to get a copy of this message | ||
Commit: a76661a4a2b129eb4d098abfc45fbed46066636b
Author: Hongbo <hongbodev@gmail.com> Thu, 19 Jul 2018 01:30:44 +0800
Committer: Christoph M. Becker <cmbecker69@gmx.de> Wed, 18 Jul 2018 20:49:12 +0200
Parents: 1820f2f2f34bb9080fa4b1fad0c04e090feb33c1
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a76661a4a2b129eb4d098abfc45fbed46066636b
Log:
fix ext_skel continue
"continue" inside switch is ambiguous, should be "continue 2".
Changed paths:
M ext/ext_skel.php
Diff:
diff --git a/ext/ext_skel.php b/ext/ext_skel.php
index f796a0d..96f6825 100755
--- a/ext/ext_skel.php
+++ b/ext/ext_skel.php
@@ -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]);