Skip to content

Commit 8e0ddc8

Browse files
committed
Drop duplicate dtors in update_opN
Per new convention update_opN should no longer dtor on failure.
1 parent 3f8ceb6 commit 8e0ddc8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ext/opcache/Optimizer/zend_optimizer.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,14 +222,12 @@ static inline void alloc_cache_slots_op2(zend_op_array *op_array, zend_op *oplin
222222

223223
#define REQUIRES_STRING(val) do { \
224224
if (Z_TYPE_P(val) != IS_STRING) { \
225-
zval_ptr_dtor_nogc(val); \
226225
return 0; \
227226
} \
228227
} while (0)
229228

230229
#define TO_STRING_NOWARN(val) do { \
231230
if (Z_TYPE_P(val) >= IS_ARRAY) { \
232-
zval_ptr_dtor_nogc(val); \
233231
return 0; \
234232
} \
235233
convert_to_string(val); \

0 commit comments

Comments
 (0)