@@ -852,7 +852,7 @@ static zend_always_inline uint8_t zval_get_type(const zval* pz) {
852852
853853#define ZVAL_STR (z , s ) do { \
854854 zval *__z = (z); \
855- zend_string *__s = (s); \
855+ const zend_string *__s = (s); \
856856 Z_STR_P(__z) = __s; \
857857 /* interned strings support */ \
858858 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) {
862862
863863#define ZVAL_INTERNED_STR (z , s ) do { \
864864 zval *__z = (z); \
865- zend_string *__s = (s); \
865+ const zend_string *__s = (s); \
866866 Z_STR_P(__z) = __s; \
867867 Z_TYPE_INFO_P(__z) = IS_INTERNED_STRING_EX; \
868868 } while (0)
869869
870870#define ZVAL_NEW_STR (z , s ) do { \
871871 zval *__z = (z); \
872- zend_string *__s = (s); \
872+ const zend_string *__s = (s); \
873873 Z_STR_P(__z) = __s; \
874874 Z_TYPE_INFO_P(__z) = IS_STRING_EX; \
875875 } while (0)
876876
877877#define ZVAL_STR_COPY (z , s ) do { \
878878 zval *__z = (z); \
879- zend_string *__s = (s); \
879+ const zend_string *__s = (s); \
880880 Z_STR_P(__z) = __s; \
881881 /* interned strings support */ \
882882 if (ZSTR_IS_INTERNED (__s )) { \
@@ -888,7 +888,7 @@ static zend_always_inline uint8_t zval_get_type(const zval* pz) {
888888 } while (0 )
889889
890890#define ZVAL_ARR (z , a ) do { \
891- zend_array *__arr = (a); \
891+ const zend_array *__arr = (a); \
892892 zval *__z = (z); \
893893 Z_ARR_P(__z) = __arr; \
894894 Z_TYPE_INFO_P(__z) = IS_ARRAY_EX; \
@@ -910,7 +910,7 @@ static zend_always_inline uint8_t zval_get_type(const zval* pz) {
910910
911911#define ZVAL_OBJ_COPY (z , o ) do { \
912912 zval *__z = (z); \
913- zend_object *__o = (o); \
913+ const zend_object *__o = (o); \
914914 GC_ADDREF(__o); \
915915 Z_OBJ_P(__z) = __o; \
916916 Z_TYPE_INFO_P(__z) = IS_OBJECT_EX; \
0 commit comments