Commits

Ruslan Osmanov  committed 838375c

Refact: use ZVAL_ZVAL instead of REPLACE_ZVAL_VALUE in read-prop handler

  • Participants
  • Parent commits cb2d30c

Comments (0)

Files changed (1)

 	REPLACE_ZVAL_VALUE(ppz, value, 1);
 }
 
-static inline void _prop_read_zval(const zval *pz, zval **retval)
+static inline void _prop_read_zval(zval *pz, zval **retval)
 {
 	if (!pz) {
 		ALLOC_INIT_ZVAL(*retval);
 	}
 
     MAKE_STD_ZVAL(*retval);
-    REPLACE_ZVAL_VALUE(retval, pz, 1);
+    /*REPLACE_ZVAL_VALUE(retval, pz, 1);*/
+    ZVAL_ZVAL(*retval, pz, 1, 0);
 }