@@ -371,7 +371,7 @@ ZEND_API void ZEND_FASTCALL convert_to_long_base(zval *op, int base) /* {{{ */
371
371
zval dst ;
372
372
373
373
convert_object_to_type (op , & dst , IS_LONG , convert_to_long );
374
- zval_dtor (op );
374
+ zval_ptr_dtor (op );
375
375
376
376
if (Z_TYPE (dst ) == IS_LONG ) {
377
377
ZVAL_LONG (op , Z_LVAL (dst ));
@@ -430,7 +430,7 @@ ZEND_API void ZEND_FASTCALL convert_to_double(zval *op) /* {{{ */
430
430
zval dst ;
431
431
432
432
convert_object_to_type (op , & dst , IS_DOUBLE , convert_to_double );
433
- zval_dtor (op );
433
+ zval_ptr_dtor (op );
434
434
435
435
if (Z_TYPE (dst ) == IS_DOUBLE ) {
436
436
ZVAL_DOUBLE (op , Z_DVAL (dst ));
@@ -502,7 +502,7 @@ ZEND_API void ZEND_FASTCALL convert_to_boolean(zval *op) /* {{{ */
502
502
zval dst ;
503
503
504
504
convert_object_to_type (op , & dst , _IS_BOOL , convert_to_boolean );
505
- zval_dtor (op );
505
+ zval_ptr_dtor (op );
506
506
507
507
if (Z_TYPE_INFO (dst ) == IS_FALSE || Z_TYPE_INFO (dst ) == IS_TRUE ) {
508
508
Z_TYPE_INFO_P (op ) = Z_TYPE_INFO (dst );
@@ -576,7 +576,7 @@ ZEND_API void ZEND_FASTCALL _convert_to_string(zval *op ZEND_FILE_LINE_DC) /* {{
576
576
zval dst ;
577
577
578
578
convert_object_to_type (op , & dst , IS_STRING , convert_to_string );
579
- zval_dtor (op );
579
+ zval_ptr_dtor (op );
580
580
581
581
if (Z_TYPE (dst ) == IS_STRING ) {
582
582
ZVAL_COPY_VALUE (op , & dst );
@@ -620,7 +620,7 @@ ZEND_API void ZEND_FASTCALL convert_to_array(zval *op) /* {{{ */
620
620
(Z_OBJCE_P (op )-> default_properties_count ||
621
621
Z_OBJ_P (op )-> handlers != & std_object_handlers ||
622
622
GC_IS_RECURSIVE (obj_ht )));
623
- zval_dtor (op );
623
+ zval_ptr_dtor (op );
624
624
ZVAL_ARR (op , obj_ht );
625
625
return ;
626
626
}
@@ -629,13 +629,13 @@ ZEND_API void ZEND_FASTCALL convert_to_array(zval *op) /* {{{ */
629
629
convert_object_to_type (op , & dst , IS_ARRAY , convert_to_array );
630
630
631
631
if (Z_TYPE (dst ) == IS_ARRAY ) {
632
- zval_dtor (op );
632
+ zval_ptr_dtor (op );
633
633
ZVAL_COPY_VALUE (op , & dst );
634
634
return ;
635
635
}
636
636
}
637
637
638
- zval_dtor (op );
638
+ zval_ptr_dtor (op );
639
639
/*ZVAL_EMPTY_ARRAY(op);*/
640
640
array_init (op );
641
641
}
@@ -667,7 +667,7 @@ ZEND_API void ZEND_FASTCALL convert_to_object(zval *op) /* {{{ */
667
667
/* TODO: try not to duplicate immutable arrays as well ??? */
668
668
ht = zend_array_dup (ht );
669
669
} else if (ht != Z_ARR_P (op )) {
670
- zval_dtor (op );
670
+ zval_ptr_dtor (op );
671
671
} else {
672
672
GC_DELREF (ht );
673
673
}
0 commit comments