Skip to content

Commit dfa166e

Browse files
committed
Remove unused ZEND_FILE_LINE in i_zval_ptr_dtor
1 parent 2568594 commit dfa166e

12 files changed

+56
-56
lines changed

Zend/zend_API.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3493,7 +3493,7 @@ ZEND_API void zend_fcall_info_args_clear(zend_fcall_info *fci, int free_mem) /*
34933493
zval *end = p + fci->param_count;
34943494

34953495
while (p != end) {
3496-
i_zval_ptr_dtor(p ZEND_FILE_LINE_CC);
3496+
i_zval_ptr_dtor(p);
34973497
p++;
34983498
}
34993499
if (free_mem) {

Zend/zend_execute.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ ZEND_API const zend_internal_function zend_pass_function = {
132132
};
133133

134134
#undef zval_ptr_dtor
135-
#define zval_ptr_dtor(zv) i_zval_ptr_dtor(zv ZEND_FILE_LINE_CC)
135+
#define zval_ptr_dtor(zv) i_zval_ptr_dtor(zv)
136136

137137
#define FREE_VAR_PTR_AND_EXTRACT_RESULT_IF_NECESSARY(free_op, result) do { \
138138
zval *__container_to_free = (free_op); \

Zend/zend_execute_API.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ static void zend_unclean_zval_ptr_dtor(zval *zv) /* {{{ */
205205
if (Z_TYPE_P(zv) == IS_INDIRECT) {
206206
zv = Z_INDIRECT_P(zv);
207207
}
208-
i_zval_ptr_dtor(zv ZEND_FILE_LINE_CC);
208+
i_zval_ptr_dtor(zv);
209209
}
210210
/* }}} */
211211

Zend/zend_hash.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1549,19 +1549,19 @@ ZEND_API void ZEND_FASTCALL zend_array_destroy(HashTable *ht)
15491549

15501550
if (HT_HAS_STATIC_KEYS_ONLY(ht)) {
15511551
do {
1552-
i_zval_ptr_dtor(&p->val ZEND_FILE_LINE_CC);
1552+
i_zval_ptr_dtor(&p->val);
15531553
} while (++p != end);
15541554
} else if (HT_IS_WITHOUT_HOLES(ht)) {
15551555
do {
1556-
i_zval_ptr_dtor(&p->val ZEND_FILE_LINE_CC);
1556+
i_zval_ptr_dtor(&p->val);
15571557
if (EXPECTED(p->key)) {
15581558
zend_string_release_ex(p->key, 0);
15591559
}
15601560
} while (++p != end);
15611561
} else {
15621562
do {
15631563
if (EXPECTED(Z_TYPE(p->val) != IS_UNDEF)) {
1564-
i_zval_ptr_dtor(&p->val ZEND_FILE_LINE_CC);
1564+
i_zval_ptr_dtor(&p->val);
15651565
if (EXPECTED(p->key)) {
15661566
zend_string_release_ex(p->key, 0);
15671567
}
@@ -1659,19 +1659,19 @@ ZEND_API void ZEND_FASTCALL zend_symtable_clean(HashTable *ht)
16591659
end = p + ht->nNumUsed;
16601660
if (HT_HAS_STATIC_KEYS_ONLY(ht)) {
16611661
do {
1662-
i_zval_ptr_dtor(&p->val ZEND_FILE_LINE_CC);
1662+
i_zval_ptr_dtor(&p->val);
16631663
} while (++p != end);
16641664
} else if (HT_IS_WITHOUT_HOLES(ht)) {
16651665
do {
1666-
i_zval_ptr_dtor(&p->val ZEND_FILE_LINE_CC);
1666+
i_zval_ptr_dtor(&p->val);
16671667
if (EXPECTED(p->key)) {
16681668
zend_string_release(p->key);
16691669
}
16701670
} while (++p != end);
16711671
} else {
16721672
do {
16731673
if (EXPECTED(Z_TYPE(p->val) != IS_UNDEF)) {
1674-
i_zval_ptr_dtor(&p->val ZEND_FILE_LINE_CC);
1674+
i_zval_ptr_dtor(&p->val);
16751675
if (EXPECTED(p->key)) {
16761676
zend_string_release(p->key);
16771677
}

Zend/zend_objects.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ ZEND_API void zend_object_std_dtor(zend_object *object)
5252
if (EXPECTED(object->ce->default_properties_count)) {
5353
end = p + object->ce->default_properties_count;
5454
do {
55-
i_zval_ptr_dtor(p ZEND_FILE_LINE_CC);
55+
i_zval_ptr_dtor(p);
5656
p++;
5757
} while (p != end);
5858
}
@@ -187,7 +187,7 @@ ZEND_API void ZEND_FASTCALL zend_objects_clone_members(zend_object *new_object,
187187
zval *end = src + old_object->ce->default_properties_count;
188188

189189
do {
190-
i_zval_ptr_dtor(dst ZEND_FILE_LINE_CC);
190+
i_zval_ptr_dtor(dst);
191191
ZVAL_COPY_VALUE(dst, src);
192192
zval_add_ref(dst);
193193
src++;

Zend/zend_opcode.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ ZEND_API void zend_cleanup_internal_class_data(zend_class_entry *ce)
151151
ce->static_members_table = NULL;
152152
#endif
153153
while (p != end) {
154-
i_zval_ptr_dtor(p ZEND_FILE_LINE_CC);
154+
i_zval_ptr_dtor(p);
155155
p++;
156156
}
157157
efree(static_members);
@@ -226,7 +226,7 @@ ZEND_API void destroy_zend_class(zval *zv)
226226
zval *end = p + ce->default_properties_count;
227227

228228
while (p != end) {
229-
i_zval_ptr_dtor(p ZEND_FILE_LINE_CC);
229+
i_zval_ptr_dtor(p);
230230
p++;
231231
}
232232
efree(ce->default_properties_table);
@@ -236,7 +236,7 @@ ZEND_API void destroy_zend_class(zval *zv)
236236
zval *end = p + ce->default_static_members_count;
237237

238238
while (p != end) {
239-
i_zval_ptr_dtor(p ZEND_FILE_LINE_CC);
239+
i_zval_ptr_dtor(p);
240240
p++;
241241
}
242242
efree(ce->default_static_members_table);

Zend/zend_operators.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1821,7 +1821,7 @@ ZEND_API int ZEND_FASTCALL concat_function(zval *result, zval *op1, zval *op2) /
18211821
if (UNEXPECTED(Z_STRLEN_P(op1) == 0)) {
18221822
if (EXPECTED(result != op2)) {
18231823
if (result == orig_op1) {
1824-
i_zval_ptr_dtor(result ZEND_FILE_LINE_CC);
1824+
i_zval_ptr_dtor(result);
18251825
}
18261826
ZVAL_COPY(result, op2);
18271827
}
@@ -1852,7 +1852,7 @@ ZEND_API int ZEND_FASTCALL concat_function(zval *result, zval *op1, zval *op2) /
18521852
result_str = zend_string_alloc(result_len, 0);
18531853
memcpy(ZSTR_VAL(result_str), Z_STRVAL_P(op1), op1_len);
18541854
if (result == orig_op1) {
1855-
i_zval_ptr_dtor(result ZEND_FILE_LINE_CC);
1855+
i_zval_ptr_dtor(result);
18561856
}
18571857
}
18581858

Zend/zend_variables.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ static void ZEND_FASTCALL zend_string_destroy(zend_string *str)
7676

7777
static void ZEND_FASTCALL zend_reference_destroy(zend_reference *ref)
7878
{
79-
i_zval_ptr_dtor(&ref->val ZEND_FILE_LINE_CC);
79+
i_zval_ptr_dtor(&ref->val);
8080
efree_size(ref, sizeof(zend_reference));
8181
}
8282

@@ -108,7 +108,7 @@ static void ZEND_FASTCALL zend_ast_ref_destroy_wrapper(zend_ast_ref *ast)
108108

109109
ZEND_API void zval_ptr_dtor(zval *zval_ptr) /* {{{ */
110110
{
111-
i_zval_ptr_dtor(zval_ptr ZEND_FILE_LINE_CC);
111+
i_zval_ptr_dtor(zval_ptr);
112112
}
113113
/* }}} */
114114

Zend/zend_variables.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ static zend_always_inline void zval_ptr_dtor_nogc(zval *zval_ptr)
3636
}
3737
}
3838

39-
static zend_always_inline void i_zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC)
39+
static zend_always_inline void i_zval_ptr_dtor(zval *zval_ptr)
4040
{
4141
if (Z_REFCOUNTED_P(zval_ptr)) {
4242
zend_refcounted *ref = Z_COUNTED_P(zval_ptr);

ext/standard/array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6140,7 +6140,7 @@ PHP_FUNCTION(array_map)
61406140

61416141
ZVAL_COPY(&arg, zv);
61426142
ret = zend_call_function(&fci, &fci_cache);
6143-
i_zval_ptr_dtor(&arg ZEND_FILE_LINE_CC);
6143+
i_zval_ptr_dtor(&arg);
61446144
if (ret != SUCCESS || Z_TYPE(result) == IS_UNDEF) {
61456145
zend_array_destroy(Z_ARR_P(return_value));
61466146
RETURN_NULL();

0 commit comments

Comments
 (0)