Home
last modified time | relevance | path

Searched refs:var_hash (Results 1 – 12 of 12) sorted by relevance

/PHP-8.1/ext/standard/
H A Dvar_unserializer.re132 var_hash->data[var_hash->used_slots++] = rval;
180 …for (used_slots = var_hash->used_slots; var_hash->used_slots < used_slots + num; var_hash->used_sl…
181 ZVAL_UNDEF(&var_hash->data[var_hash->used_slots]);
182 Z_EXTRA(var_hash->data[var_hash->used_slots]) = 0;
207 var_hash = var_hash->next;
219 var_hash = var_hash->next;
470 if (var_hash) {
471 if ((*var_hash)->max_depth > 0 && (*var_hash)->cur_depth >= (*var_hash)->max_depth) {
527 if (var_hash) {
533 if (var_hash) {
[all …]
H A Dphp_var.h35 …e(zval *rval, const unsigned char **p, const unsigned char *max, php_unserialize_data_t *var_hash);
36 …f(zval *rval, const unsigned char **p, const unsigned char *max, php_unserialize_data_t *var_hash);
37 …n(zval *rval, const unsigned char **p, const unsigned char *max, php_unserialize_data_t *var_hash);
64 PHPAPI void var_replace(php_unserialize_data_t *var_hash, zval *ozval, zval *nzval);
65 PHPAPI void var_push_dtor(php_unserialize_data_t *var_hash, zval *val);
67 PHPAPI void var_destroy(php_unserialize_data_t *var_hash);
H A Dvar.c961 php_add_var_hash(var_hash, struc, in_rcn_array); in php_var_serialize_nested_data()
1003 if (var_hash && (var_already = php_add_var_hash(var_hash, struc, in_rcn_array))) { in php_var_serialize_intern()
1310 php_serialize_data_t var_hash; in PHP_FUNCTION() local
1317 PHP_VAR_SERIALIZE_INIT(var_hash); in PHP_FUNCTION()
1318 php_var_serialize(&buf, struc, &var_hash); in PHP_FUNCTION()
1319 PHP_VAR_SERIALIZE_DESTROY(var_hash); in PHP_FUNCTION()
1338 php_unserialize_data_t var_hash; in php_unserialize_with_options() local
1348 PHP_VAR_UNSERIALIZE_INIT(var_hash); in php_unserialize_with_options()
1398 php_var_unserialize_set_cur_depth(var_hash, 0); in php_unserialize_with_options()
1403 retval = var_tmp_var(&var_hash); in php_unserialize_with_options()
[all …]
/PHP-8.1/sapi/fuzzer/
H A Dfuzzer-unserialize.c48 php_unserialize_data_t var_hash; in LLVMFuzzerTestOneInput() local
49 PHP_VAR_UNSERIALIZE_INIT(var_hash); in LLVMFuzzerTestOneInput()
50 php_var_unserialize(&result, (const unsigned char **) &data, data + Size, &var_hash); in LLVMFuzzerTestOneInput()
51 PHP_VAR_UNSERIALIZE_DESTROY(var_hash); in LLVMFuzzerTestOneInput()
H A Dfuzzer-unserializehash.c53 php_unserialize_data_t var_hash; in LLVMFuzzerTestOneInput() local
54 PHP_VAR_UNSERIALIZE_INIT(var_hash); in LLVMFuzzerTestOneInput()
55 php_var_unserialize(&result, (const unsigned char **) &data, data + Size, &var_hash); in LLVMFuzzerTestOneInput()
56 PHP_VAR_UNSERIALIZE_DESTROY(var_hash); in LLVMFuzzerTestOneInput()
/PHP-8.1/ext/sysvmsg/
H A Dsysvmsg.c329 php_unserialize_data_t var_hash; in PHP_FUNCTION() local
333 PHP_VAR_UNSERIALIZE_INIT(var_hash); in PHP_FUNCTION()
334 if (!php_var_unserialize(&tmp, &p, p + result, &var_hash)) { in PHP_FUNCTION()
341 PHP_VAR_UNSERIALIZE_DESTROY(var_hash); in PHP_FUNCTION()
378 php_serialize_data_t var_hash; in PHP_FUNCTION() local
380 PHP_VAR_SERIALIZE_INIT(var_hash); in PHP_FUNCTION()
381 php_var_serialize(&msg_var, message, &var_hash); in PHP_FUNCTION()
382 PHP_VAR_SERIALIZE_DESTROY(var_hash); in PHP_FUNCTION()
/PHP-8.1/ext/sysvshm/
H A Dsysvshm.c243 php_serialize_data_t var_hash; in PHP_FUNCTION() local
256 PHP_VAR_SERIALIZE_INIT(var_hash); in PHP_FUNCTION()
257 php_var_serialize(&shm_var, arg_var, &var_hash); in PHP_FUNCTION()
258 PHP_VAR_SERIALIZE_DESTROY(var_hash); in PHP_FUNCTION()
283 php_unserialize_data_t var_hash; in PHP_FUNCTION() local
306 PHP_VAR_UNSERIALIZE_INIT(var_hash); in PHP_FUNCTION()
307 …const unsigned char **) &shm_data, (unsigned char *) shm_data + shm_var->length, &var_hash) != 1) { in PHP_FUNCTION()
311 PHP_VAR_UNSERIALIZE_DESTROY(var_hash); in PHP_FUNCTION()
/PHP-8.1/ext/spl/
H A Dspl_observer.c628 php_serialize_data_t var_hash; in PHP_METHOD() local
635 PHP_VAR_SERIALIZE_INIT(var_hash); in PHP_METHOD()
648 PHP_VAR_SERIALIZE_DESTROY(var_hash); in PHP_METHOD()
667 PHP_VAR_SERIALIZE_DESTROY(var_hash); in PHP_METHOD()
680 php_unserialize_data_t var_hash; in PHP_METHOD() local
695 PHP_VAR_UNSERIALIZE_INIT(var_hash); in PHP_METHOD()
702 pcount = var_tmp_var(&var_hash); in PHP_METHOD()
716 zval *entry = var_tmp_var(&var_hash); in PHP_METHOD()
755 var_push_dtor(&var_hash, &obj); in PHP_METHOD()
773 pmembers = var_tmp_var(&var_hash); in PHP_METHOD()
[all …]
H A Dspl_dllist.c1016 php_serialize_data_t var_hash; in PHP_METHOD() local
1022 PHP_VAR_SERIALIZE_INIT(var_hash); in PHP_METHOD()
1026 php_var_serialize(&buf, &flags, &var_hash); in PHP_METHOD()
1041 PHP_VAR_SERIALIZE_DESTROY(var_hash); in PHP_METHOD()
1054 php_unserialize_data_t var_hash; in PHP_METHOD() local
1071 PHP_VAR_UNSERIALIZE_INIT(var_hash); in PHP_METHOD()
1074 flags = var_tmp_var(&var_hash); in PHP_METHOD()
1084 elem = var_tmp_var(&var_hash); in PHP_METHOD()
1088 var_push_dtor(&var_hash, elem); in PHP_METHOD()
1097 PHP_VAR_UNSERIALIZE_DESTROY(var_hash); in PHP_METHOD()
[all …]
H A Dspl_array.c1681 php_serialize_data_t var_hash; in PHP_METHOD() local
1688 PHP_VAR_SERIALIZE_INIT(var_hash); in PHP_METHOD()
1694 php_var_serialize(&buf, &flags, &var_hash); in PHP_METHOD()
1712 PHP_VAR_SERIALIZE_DESTROY(var_hash); in PHP_METHOD()
1726 php_unserialize_data_t var_hash; in PHP_METHOD() local
1745 PHP_VAR_UNSERIALIZE_INIT(var_hash); in PHP_METHOD()
1752 zflags = var_tmp_var(&var_hash); in PHP_METHOD()
1780 array = var_tmp_var(&var_hash); in PHP_METHOD()
1810 members = var_tmp_var(&var_hash); in PHP_METHOD()
1819 PHP_VAR_UNSERIALIZE_DESTROY(var_hash); in PHP_METHOD()
[all …]
/PHP-8.1/ext/session/
H A Dsession.c842 php_serialize_data_t var_hash; in PHP_INI_END() local
845 PHP_VAR_SERIALIZE_INIT(var_hash); in PHP_INI_END()
857 php_unserialize_data_t var_hash; in PS_SERIALIZER_DECODE_FUNC() local
892 php_serialize_data_t var_hash; in PS_SERIALIZER_ENCODE_FUNC() local
895 PHP_VAR_SERIALIZE_INIT(var_hash); in PS_SERIALIZER_ENCODE_FUNC()
917 php_unserialize_data_t var_hash; in PS_SERIALIZER_DECODE_FUNC() local
932 current = var_tmp_var(&var_hash); in PS_SERIALIZER_DECODE_FUNC()
958 php_serialize_data_t var_hash; in PS_SERIALIZER_ENCODE_FUNC() local
961 PHP_VAR_SERIALIZE_INIT(var_hash); in PS_SERIALIZER_ENCODE_FUNC()
988 php_unserialize_data_t var_hash; in PS_SERIALIZER_DECODE_FUNC() local
[all …]
H A Dphp_session.h254 …PI zval *php_set_session_var(zend_string *name, zval *state_val, php_unserialize_data_t *var_hash);

Completed in 59 milliseconds