Home
last modified time | relevance | path

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

/PHP-5.3/ext/standard/
H A Dphp_var.h53 #define PHP_VAR_SERIALIZE_INIT(var_hash) \ argument
54 zend_hash_init(&(var_hash), 10, NULL, NULL, 0)
55 #define PHP_VAR_SERIALIZE_DESTROY(var_hash) \ argument
56 zend_hash_destroy(&(var_hash))
58 #define PHP_VAR_UNSERIALIZE_INIT(var_hash) \ argument
59 (var_hash).first = 0; \
60 (var_hash).first_dtor = 0
61 #define PHP_VAR_UNSERIALIZE_DESTROY(var_hash) \ argument
62 var_destroy(&(var_hash))
66 PHPAPI void var_destroy(php_unserialize_data_t *var_hash);
[all …]
H A Dvar_unserializer.re38 while (var_hash && var_hash->used_slots == VAR_ENTRIES_MAX) {
39 prev = var_hash;
40 var_hash = var_hash->next;
43 if (!var_hash) {
54 var_hash->data[var_hash->used_slots++] = *rval;
61 while (var_hash && var_hash->used_slots == VAR_ENTRIES_MAX) {
63 var_hash = var_hash->next;
66 if (!var_hash) {
78 var_hash->data[var_hash->used_slots++] = *rval;
93 var_hash = var_hash->next;
[all …]
H A Dvar_unserializer.c40 while (var_hash && var_hash->used_slots == VAR_ENTRIES_MAX) { in var_push()
41 prev = var_hash; in var_push()
42 var_hash = var_hash->next; in var_push()
45 if (!var_hash) { in var_push()
56 var_hash->data[var_hash->used_slots++] = *rval; in var_push()
63 while (var_hash && var_hash->used_slots == VAR_ENTRIES_MAX) { in var_push_dtor()
65 var_hash = var_hash->next; in var_push_dtor()
68 if (!var_hash) { in var_push_dtor()
80 var_hash->data[var_hash->used_slots++] = *rval; in var_push_dtor()
95 var_hash = var_hash->next; in var_replace()
[all …]
H A Dvar.c568 var_no = zend_hash_num_elements(var_hash) + 1; in php_add_var_hash()
658 php_var_serialize_intern(buf, *d, var_hash TSRMLS_CC); in php_var_serialize_class()
704 if (var_hash && php_add_var_hash(var_hash, struc, (void *) &var_already TSRMLS_CC) == FAILURE) { in php_var_serialize_intern()
894 php_serialize_data_t var_hash; in PHP_FUNCTION() local
905 PHP_VAR_SERIALIZE_INIT(var_hash); in PHP_FUNCTION()
906 php_var_serialize(&buf, struc, &var_hash TSRMLS_CC); in PHP_FUNCTION()
907 PHP_VAR_SERIALIZE_DESTROY(var_hash); in PHP_FUNCTION()
924 php_unserialize_data_t var_hash; in PHP_FUNCTION() local
935 PHP_VAR_UNSERIALIZE_INIT(var_hash); in PHP_FUNCTION()
937 PHP_VAR_UNSERIALIZE_DESTROY(var_hash); in PHP_FUNCTION()
[all …]
/PHP-5.3/ext/sysvshm/
H A Dsysvshm.c249 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 TSRMLS_CC); in PHP_FUNCTION()
258 PHP_VAR_SERIALIZE_DESTROY(var_hash); in PHP_FUNCTION()
290 php_unserialize_data_t var_hash; in PHP_FUNCTION() local
308 PHP_VAR_UNSERIALIZE_INIT(var_hash); in PHP_FUNCTION()
309 …gned char **) &shm_data, (unsigned char *) shm_data + shm_var->length, &var_hash TSRMLS_CC) != 1) { in PHP_FUNCTION()
313 PHP_VAR_UNSERIALIZE_DESTROY(var_hash); in PHP_FUNCTION()
/PHP-5.3/ext/sysvmsg/
H A Dsysvmsg.c363 php_unserialize_data_t var_hash; in PHP_FUNCTION() local
368 PHP_VAR_UNSERIALIZE_INIT(var_hash); in PHP_FUNCTION()
369 if (!php_var_unserialize(&tmp, &p, p + result, &var_hash TSRMLS_CC)) { in PHP_FUNCTION()
376 PHP_VAR_UNSERIALIZE_DESTROY(var_hash); in PHP_FUNCTION()
410 php_serialize_data_t var_hash; in PHP_FUNCTION() local
412 PHP_VAR_SERIALIZE_INIT(var_hash); in PHP_FUNCTION()
413 php_var_serialize(&msg_var, &message, &var_hash TSRMLS_CC); in PHP_FUNCTION()
414 PHP_VAR_SERIALIZE_DESTROY(var_hash); in PHP_FUNCTION()
/PHP-5.3/ext/spl/
H A Dspl_observer.c661 php_serialize_data_t var_hash; in SPL_METHOD() local
668 PHP_VAR_SERIALIZE_INIT(var_hash); in SPL_METHOD()
680 PHP_VAR_SERIALIZE_DESTROY(var_hash); in SPL_METHOD()
683 php_var_serialize(&buf, &element->obj, &var_hash TSRMLS_CC); in SPL_METHOD()
699 PHP_VAR_SERIALIZE_DESTROY(var_hash); in SPL_METHOD()
718 php_unserialize_data_t var_hash; in SPL_METHOD() local
733 PHP_VAR_UNSERIALIZE_INIT(var_hash); in SPL_METHOD()
781 var_push_dtor(&var_hash, &pelement->inf); in SPL_METHOD()
784 var_push_dtor(&var_hash, &pelement->obj); in SPL_METHOD()
815 PHP_VAR_UNSERIALIZE_DESTROY(var_hash); in SPL_METHOD()
[all …]
/PHP-5.3/ext/session/
H A Dsession.c196 if (var_hash) { in php_set_session_var()
832 php_serialize_data_t var_hash; in PHP_INI_END() local
835 PHP_VAR_SERIALIZE_INIT(var_hash); in PHP_INI_END()
853 PHP_VAR_SERIALIZE_DESTROY(var_hash);
867 php_unserialize_data_t var_hash;
869 PHP_VAR_UNSERIALIZE_INIT(var_hash);
915 php_serialize_data_t var_hash;
918 PHP_VAR_SERIALIZE_INIT(var_hash);
942 PHP_VAR_SERIALIZE_DESTROY(var_hash);
955 php_unserialize_data_t var_hash;
[all …]
H A Dphp_session.h188 …ssion_var(char *name, size_t namelen, zval *state_val, php_unserialize_data_t *var_hash TSRMLS_DC);
/PHP-5.3/ext/phar/
H A Dphar.c610 php_unserialize_data_t var_hash; local
622 PHP_VAR_UNSERIALIZE_INIT(var_hash);
624 if (!php_var_unserialize(metadata, &p, p + buf_len, &var_hash TSRMLS_CC)) {
625 PHP_VAR_UNSERIALIZE_DESTROY(var_hash);
631 PHP_VAR_UNSERIALIZE_DESTROY(var_hash);
/PHP-5.3/ext/pdo/
H A Dpdo_stmt.c1134 php_unserialize_data_t var_hash; in do_fetch() local
1136 PHP_VAR_UNSERIALIZE_INIT(var_hash); in do_fetch()
1139 PHP_VAR_UNSERIALIZE_DESTROY(var_hash); in do_fetch()
1142 PHP_VAR_UNSERIALIZE_DESTROY(var_hash); in do_fetch()

Completed in 53 milliseconds