@@ -852,7 +852,7 @@ static zend_always_inline uint8_t zval_get_type(const zval* pz) {
852
852
853
853
#define ZVAL_STR (z , s ) do { \
854
854
zval *__z = (z); \
855
- zend_string *__s = (s); \
855
+ const zend_string *__s = (s); \
856
856
Z_STR_P(__z) = __s; \
857
857
/* interned strings support */ \
858
858
Z_TYPE_INFO_P (__z ) = ZSTR_IS_INTERNED (__s ) ? \
@@ -862,21 +862,21 @@ static zend_always_inline uint8_t zval_get_type(const zval* pz) {
862
862
863
863
#define ZVAL_INTERNED_STR (z , s ) do { \
864
864
zval *__z = (z); \
865
- zend_string *__s = (s); \
865
+ const zend_string *__s = (s); \
866
866
Z_STR_P(__z) = __s; \
867
867
Z_TYPE_INFO_P(__z) = IS_INTERNED_STRING_EX; \
868
868
} while (0)
869
869
870
870
#define ZVAL_NEW_STR (z , s ) do { \
871
871
zval *__z = (z); \
872
- zend_string *__s = (s); \
872
+ const zend_string *__s = (s); \
873
873
Z_STR_P(__z) = __s; \
874
874
Z_TYPE_INFO_P(__z) = IS_STRING_EX; \
875
875
} while (0)
876
876
877
877
#define ZVAL_STR_COPY (z , s ) do { \
878
878
zval *__z = (z); \
879
- zend_string *__s = (s); \
879
+ const zend_string *__s = (s); \
880
880
Z_STR_P(__z) = __s; \
881
881
/* interned strings support */ \
882
882
if (ZSTR_IS_INTERNED (__s )) { \
@@ -888,7 +888,7 @@ static zend_always_inline uint8_t zval_get_type(const zval* pz) {
888
888
} while (0 )
889
889
890
890
#define ZVAL_ARR (z , a ) do { \
891
- zend_array *__arr = (a); \
891
+ const zend_array *__arr = (a); \
892
892
zval *__z = (z); \
893
893
Z_ARR_P(__z) = __arr; \
894
894
Z_TYPE_INFO_P(__z) = IS_ARRAY_EX; \
@@ -910,7 +910,7 @@ static zend_always_inline uint8_t zval_get_type(const zval* pz) {
910
910
911
911
#define ZVAL_OBJ_COPY (z , o ) do { \
912
912
zval *__z = (z); \
913
- zend_object *__o = (o); \
913
+ const zend_object *__o = (o); \
914
914
GC_ADDREF(__o); \
915
915
Z_OBJ_P(__z) = __o; \
916
916
Z_TYPE_INFO_P(__z) = IS_OBJECT_EX; \
0 commit comments