/PHP-7.3/ext/standard/ |
H A D | var_unserializer.c | 95 if (!var_hash || var_hash->used_slots == VAR_ENTRIES_MAX) { in var_push() 109 var_hash->data[var_hash->used_slots++] = rval; in var_push() 130 if (!var_hash || var_hash->used_slots == VAR_ENTRIES_MAX) { in var_tmp_var() 143 ZVAL_UNDEF(&var_hash->data[var_hash->used_slots]); in var_tmp_var() 144 Z_EXTRA(var_hash->data[var_hash->used_slots]) = 0; in var_tmp_var() 145 return &var_hash->data[var_hash->used_slots++]; in var_tmp_var() 156 while (var_hash) { in var_replace() 163 var_hash = var_hash->next; in var_replace() 175 var_hash = var_hash->next; in var_access() 200 while (var_hash) { in var_destroy() [all …]
|
H A D | var_unserializer.re | 93 if (!var_hash || var_hash->used_slots == VAR_ENTRIES_MAX) { 107 var_hash->data[var_hash->used_slots++] = rval; 128 if (!var_hash || var_hash->used_slots == VAR_ENTRIES_MAX) { 141 ZVAL_UNDEF(&var_hash->data[var_hash->used_slots]); 142 Z_EXTRA(var_hash->data[var_hash->used_slots]) = 0; 143 return &var_hash->data[var_hash->used_slots++]; 154 while (var_hash) { 161 var_hash = var_hash->next; 173 var_hash = var_hash->next; 198 while (var_hash) { [all …]
|
H A D | php_var.h | 43 …e(zval *rval, const unsigned char **p, const unsigned char *max, php_unserialize_data_t *var_hash); 44 …f(zval *rval, const unsigned char **p, const unsigned char *max, php_unserialize_data_t *var_hash); 45 …n(zval *rval, const unsigned char **p, const unsigned char *max, php_unserialize_data_t *var_hash); 66 PHPAPI void var_replace(php_unserialize_data_t *var_hash, zval *ozval, zval *nzval); 67 PHPAPI void var_push_dtor(php_unserialize_data_t *var_hash, zval *val); 69 PHPAPI void var_destroy(php_unserialize_data_t *var_hash);
|
H A D | var.c | 844 if (var_hash && (var_already = php_add_var_hash(var_hash, struc))) { in php_var_serialize_intern() 992 php_add_var_hash(var_hash, struc); in php_var_serialize_intern() 1062 php_serialize_data_t var_hash; in PHP_FUNCTION() local 1069 PHP_VAR_SERIALIZE_INIT(var_hash); in PHP_FUNCTION() 1070 php_var_serialize(&buf, struc, &var_hash); in PHP_FUNCTION() 1071 PHP_VAR_SERIALIZE_DESTROY(var_hash); in PHP_FUNCTION() 1093 php_unserialize_data_t var_hash; in PHP_FUNCTION() local 1109 PHP_VAR_UNSERIALIZE_INIT(var_hash); in PHP_FUNCTION() 1116 PHP_VAR_UNSERIALIZE_DESTROY(var_hash); in PHP_FUNCTION() 1138 retval = var_tmp_var(&var_hash); in PHP_FUNCTION() [all …]
|
/PHP-7.3/ext/sysvshm/ |
H A D | sysvshm.c | 262 php_serialize_data_t var_hash; in PHP_FUNCTION() local 269 PHP_VAR_SERIALIZE_INIT(var_hash); in PHP_FUNCTION() 270 php_var_serialize(&shm_var, arg_var, &var_hash); in PHP_FUNCTION() 271 PHP_VAR_SERIALIZE_DESTROY(var_hash); in PHP_FUNCTION() 303 php_unserialize_data_t var_hash; in PHP_FUNCTION() local 321 PHP_VAR_UNSERIALIZE_INIT(var_hash); in PHP_FUNCTION() 322 …const unsigned char **) &shm_data, (unsigned char *) shm_data + shm_var->length, &var_hash) != 1) { in PHP_FUNCTION() 326 PHP_VAR_UNSERIALIZE_DESTROY(var_hash); in PHP_FUNCTION()
|
/PHP-7.3/ext/spl/ |
H A D | spl_observer.c | 700 php_serialize_data_t var_hash; in SPL_METHOD() local 707 PHP_VAR_SERIALIZE_INIT(var_hash); in SPL_METHOD() 712 php_var_serialize(&buf, &flags, &var_hash); in SPL_METHOD() 719 PHP_VAR_SERIALIZE_DESTROY(var_hash); in SPL_METHOD() 737 PHP_VAR_SERIALIZE_DESTROY(var_hash); in SPL_METHOD() 756 php_unserialize_data_t var_hash; in SPL_METHOD() local 772 PHP_VAR_UNSERIALIZE_INIT(var_hash); in SPL_METHOD() 779 pcount = var_tmp_var(&var_hash); in SPL_METHOD() 858 pmembers = var_tmp_var(&var_hash); in SPL_METHOD() 866 PHP_VAR_UNSERIALIZE_DESTROY(var_hash); in SPL_METHOD() [all …]
|
H A D | spl_dllist.c | 1134 php_serialize_data_t var_hash; in SPL_METHOD() local 1140 PHP_VAR_SERIALIZE_INIT(var_hash); in SPL_METHOD() 1144 php_var_serialize(&buf, &flags, &var_hash); in SPL_METHOD() 1159 PHP_VAR_SERIALIZE_DESTROY(var_hash); in SPL_METHOD() 1178 php_unserialize_data_t var_hash; in SPL_METHOD() local 1195 PHP_VAR_UNSERIALIZE_INIT(var_hash); in SPL_METHOD() 1198 flags = var_tmp_var(&var_hash); in SPL_METHOD() 1208 elem = var_tmp_var(&var_hash); in SPL_METHOD() 1212 var_push_dtor(&var_hash, elem); in SPL_METHOD() 1221 PHP_VAR_UNSERIALIZE_DESTROY(var_hash); in SPL_METHOD() [all …]
|
H A D | spl_array.c | 1724 php_serialize_data_t var_hash; in SPL_METHOD() local 1736 PHP_VAR_SERIALIZE_INIT(var_hash); in SPL_METHOD() 1742 php_var_serialize(&buf, &flags, &var_hash); in SPL_METHOD() 1760 PHP_VAR_SERIALIZE_DESTROY(var_hash); in SPL_METHOD() 1780 php_unserialize_data_t var_hash; in SPL_METHOD() local 1799 PHP_VAR_UNSERIALIZE_INIT(var_hash); in SPL_METHOD() 1806 zflags = var_tmp_var(&var_hash); in SPL_METHOD() 1834 array = var_tmp_var(&var_hash); in SPL_METHOD() 1864 members = var_tmp_var(&var_hash); in SPL_METHOD() 1873 PHP_VAR_UNSERIALIZE_DESTROY(var_hash); in SPL_METHOD() [all …]
|
/PHP-7.3/sapi/phpdbg/ |
H A D | phpdbg_webdata_transfer.c | 164 php_serialize_data_t var_hash; in phpdbg_webdata_compress() local 167 PHP_VAR_SERIALIZE_INIT(var_hash); in phpdbg_webdata_compress() 168 php_var_serialize(&buf, &array, &var_hash); in phpdbg_webdata_compress() 169 PHP_VAR_SERIALIZE_DESTROY(var_hash); in phpdbg_webdata_compress()
|
H A D | phpdbg_wait.c | 129 php_unserialize_data_t var_hash; in phpdbg_webdata_decompress() local 131 PHP_VAR_UNSERIALIZE_INIT(var_hash); in phpdbg_webdata_decompress() 132 …!php_var_unserialize(&zv, (const unsigned char **) &msg, (unsigned char *) msg + len, &var_hash)) { in phpdbg_webdata_decompress() 133 PHP_VAR_UNSERIALIZE_DESTROY(var_hash); in phpdbg_webdata_decompress() 137 PHP_VAR_UNSERIALIZE_DESTROY(var_hash); in phpdbg_webdata_decompress()
|
/PHP-7.3/ext/sysvmsg/ |
H A D | sysvmsg.c | 362 php_unserialize_data_t var_hash; in PHP_FUNCTION() local 366 PHP_VAR_UNSERIALIZE_INIT(var_hash); in PHP_FUNCTION() 367 if (!php_var_unserialize(&tmp, &p, p + result, &var_hash)) { in PHP_FUNCTION() 373 PHP_VAR_UNSERIALIZE_DESTROY(var_hash); in PHP_FUNCTION() 409 php_serialize_data_t var_hash; in PHP_FUNCTION() local 411 PHP_VAR_SERIALIZE_INIT(var_hash); in PHP_FUNCTION() 412 php_var_serialize(&msg_var, message, &var_hash); in PHP_FUNCTION() 413 PHP_VAR_SERIALIZE_DESTROY(var_hash); in PHP_FUNCTION()
|
/PHP-7.3/ext/session/ |
H A D | session.c | 841 php_serialize_data_t var_hash; in PHP_INI_END() local 844 PHP_VAR_SERIALIZE_INIT(var_hash); in PHP_INI_END() 856 php_unserialize_data_t var_hash; in PS_SERIALIZER_DECODE_FUNC() local 891 php_serialize_data_t var_hash; in PS_SERIALIZER_ENCODE_FUNC() local 894 PHP_VAR_SERIALIZE_INIT(var_hash); in PS_SERIALIZER_ENCODE_FUNC() 916 php_unserialize_data_t var_hash; in PS_SERIALIZER_DECODE_FUNC() local 931 current = var_tmp_var(&var_hash); in PS_SERIALIZER_DECODE_FUNC() 957 php_serialize_data_t var_hash; in PS_SERIALIZER_ENCODE_FUNC() local 960 PHP_VAR_SERIALIZE_INIT(var_hash); in PS_SERIALIZER_ENCODE_FUNC() 987 php_unserialize_data_t var_hash; in PS_SERIALIZER_DECODE_FUNC() local [all …]
|
H A D | php_session.h | 259 …PI zval *php_set_session_var(zend_string *name, zval *state_val, php_unserialize_data_t *var_hash);
|
/PHP-7.3/ext/pdo/ |
H A D | pdo_stmt.c | 1095 php_unserialize_data_t var_hash; in do_fetch() local 1097 PHP_VAR_UNSERIALIZE_INIT(var_hash); in do_fetch() 1100 PHP_VAR_UNSERIALIZE_DESTROY(var_hash); in do_fetch() 1103 PHP_VAR_UNSERIALIZE_DESTROY(var_hash); in do_fetch()
|
/PHP-7.3/ext/phar/ |
H A D | phar.c | 609 php_unserialize_data_t var_hash; local 616 PHP_VAR_UNSERIALIZE_INIT(var_hash); 618 if (!php_var_unserialize(metadata, &p, p + zip_metadata_len, &var_hash)) { 620 PHP_VAR_UNSERIALIZE_DESTROY(var_hash); 626 PHP_VAR_UNSERIALIZE_DESTROY(var_hash);
|