Skip to content

Commit a4a86df

Browse files
committed
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2
2 parents d062fb3 + 2454036 commit a4a86df

File tree

3 files changed

+96
-117
lines changed

3 files changed

+96
-117
lines changed

ext/standard/php_var.h

+1-4
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ typedef struct php_unserialize_data* php_unserialize_data_t;
5151

5252
PHPAPI void php_var_serialize(smart_str *buf, zval *struc, php_serialize_data_t *var_hash TSRMLS_DC);
5353
PHPAPI int php_var_unserialize(zval *rval, const unsigned char **p, const unsigned char *max, php_unserialize_data_t *var_hash TSRMLS_DC);
54+
PHPAPI int php_var_unserialize_intern(zval *rval, const unsigned char **p, const unsigned char *max, php_unserialize_data_t *var_hash TSRMLS_DC);
5455

5556
#define PHP_VAR_SERIALIZE_INIT(var_hash_ptr) \
5657
do { \
@@ -113,13 +114,9 @@ do { \
113114
} \
114115
} while (0)
115116

116-
PHPAPI void var_replace(php_unserialize_data_t *var_hash, zval *ozval, zval *nzval);
117117
PHPAPI void var_push_dtor(php_unserialize_data_t *var_hash, zval *val);
118118
PHPAPI void var_push_dtor_no_addref(php_unserialize_data_t *var_hashx, zval *rval);
119119
PHPAPI void var_destroy(php_unserialize_data_t *var_hash);
120-
121-
#define PHP_VAR_UNSERIALIZE_ZVAL_CHANGED(var_hash, ozval, nzval) \
122-
var_replace((var_hash), (ozval), &(nzval))
123120

124121
PHPAPI zend_class_entry *php_create_empty_class(char *class_name, int len);
125122

0 commit comments

Comments
 (0)