Skip to content

Commit

Permalink
ext: Cleanup some dead assignments
Browse files Browse the repository at this point in the history
Signed-off-by: Anatol Belski <[email protected]>
  • Loading branch information
weltling committed May 29, 2021
1 parent 20fc4fa commit 56c1633
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion ext/opcache/zend_persist_calc.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ static void zend_persist_op_array_calc_ex(zend_op_array *op_array)
uint32_t num_args = op_array->num_args;
uint32_t i;

num_args = op_array->num_args;
if (op_array->fn_flags & ZEND_ACC_VARIADIC) {
num_args++;
}
Expand Down
2 changes: 1 addition & 1 deletion ext/spl/spl_iterators.c
Original file line number Diff line number Diff line change
Expand Up @@ -1779,7 +1779,7 @@ PHP_METHOD(RegexIterator, __construct)
/* {{{ Calls the callback with the current value, the current key and the inner iterator as arguments */
PHP_METHOD(CallbackFilterIterator, accept)
{
spl_dual_it_object *intern = Z_SPLDUAL_IT_P(ZEND_THIS);
spl_dual_it_object *intern;

if (zend_parse_parameters_none() == FAILURE) {
RETURN_THROWS();
Expand Down
2 changes: 1 addition & 1 deletion ext/standard/user_filters.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ php_stream_filter_status_t userfilter_filter(
}

if (buckets_in->head) {
php_stream_bucket *bucket = buckets_in->head;
php_stream_bucket *bucket;

php_error_docref(NULL, E_WARNING, "Unprocessed filter buckets remaining on input brigade");
while ((bucket = buckets_in->head)) {
Expand Down

0 comments on commit 56c1633

Please sign in to comment.