Skip to content

Commit 56c1633

Browse files
committed
ext: Cleanup some dead assignments
Signed-off-by: Anatol Belski <[email protected]>
1 parent 20fc4fa commit 56c1633

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

ext/opcache/zend_persist_calc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ static void zend_persist_op_array_calc_ex(zend_op_array *op_array)
246246
uint32_t num_args = op_array->num_args;
247247
uint32_t i;
248248

249-
num_args = op_array->num_args;
250249
if (op_array->fn_flags & ZEND_ACC_VARIADIC) {
251250
num_args++;
252251
}

ext/spl/spl_iterators.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1779,7 +1779,7 @@ PHP_METHOD(RegexIterator, __construct)
17791779
/* {{{ Calls the callback with the current value, the current key and the inner iterator as arguments */
17801780
PHP_METHOD(CallbackFilterIterator, accept)
17811781
{
1782-
spl_dual_it_object *intern = Z_SPLDUAL_IT_P(ZEND_THIS);
1782+
spl_dual_it_object *intern;
17831783

17841784
if (zend_parse_parameters_none() == FAILURE) {
17851785
RETURN_THROWS();

ext/standard/user_filters.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ php_stream_filter_status_t userfilter_filter(
209209
}
210210

211211
if (buckets_in->head) {
212-
php_stream_bucket *bucket = buckets_in->head;
212+
php_stream_bucket *bucket;
213213

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

0 commit comments

Comments
 (0)