Skip to content

Commit fef5eaa

Browse files
committed
Convert fallthrough comment to pseudo-keyword in Standard extension
1 parent 3356d0c commit fef5eaa

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ext/standard/array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ PHP_FUNCTION(count)
770770
return;
771771
}
772772
}
773-
/* fallthrough */
773+
fallthrough;
774774
default:
775775
zend_argument_type_error(1, "must be of type Countable|array, %s given", zend_zval_type_name(array));
776776
RETURN_THROWS();

ext/standard/exec.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ PHPAPI zend_string *php_escape_shell_cmd(const char *str)
358358
#else
359359
ZSTR_VAL(cmd)[y++] = '\\';
360360
#endif
361-
/* fall-through */
361+
fallthrough;
362362
default:
363363
ZSTR_VAL(cmd)[y++] = str[x];
364364

@@ -432,7 +432,7 @@ PHPAPI zend_string *php_escape_shell_arg(const char *str)
432432
ZSTR_VAL(cmd)[y++] = '\\';
433433
ZSTR_VAL(cmd)[y++] = '\'';
434434
#endif
435-
/* fall-through */
435+
fallthrough;
436436
default:
437437
ZSTR_VAL(cmd)[y++] = str[x];
438438
}

ext/standard/math.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ PHPAPI void _php_math_basetozval(zend_string *str, int base, zval *ret)
773773
fnum = (double)num;
774774
mode = 1;
775775
}
776-
/* fall-through */
776+
fallthrough;
777777
case 1: /* Float */
778778
fnum = fnum * base + c;
779779
}

0 commit comments

Comments
 (0)