Searched refs:var_hash (Results 1 - 14 of 14) sorted by relevance

/PHP_5_4/ext/pdo/
H A Dpdo_stmt.c1134 php_unserialize_data_t var_hash; local
1136 PHP_VAR_UNSERIALIZE_INIT(var_hash);
1139 PHP_VAR_UNSERIALIZE_DESTROY(var_hash);
1142 PHP_VAR_UNSERIALIZE_DESTROY(var_hash);
/PHP_5_4/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_4/ext/session/
H A Dphp_session.h217 PHPAPI void php_set_session_var(char *name, size_t namelen, zval *state_val, php_unserialize_data_t *var_hash TSRMLS_DC);
H A Dsession.c157 PHPAPI void php_set_session_var(char *name, size_t namelen, zval *state_val, php_unserialize_data_t *var_hash TSRMLS_DC) /* {{{ */
794 php_serialize_data_t var_hash; local
797 PHP_VAR_SERIALIZE_INIT(var_hash);
803 php_var_serialize(&buf, struc, &var_hash TSRMLS_CC);
815 PHP_VAR_SERIALIZE_DESTROY(var_hash);
829 php_unserialize_data_t var_hash; local
831 PHP_VAR_UNSERIALIZE_INIT(var_hash);
856 if (php_var_unserialize(&current, (const unsigned char **) &p, (const unsigned char *) endptr, &var_hash TSRMLS_CC)) {
857 php_set_session_var(name, namelen, current, &var_hash TSRMLS_CC);
865 PHP_VAR_UNSERIALIZE_DESTROY(var_hash);
877 php_serialize_data_t var_hash; local
904 PHP_VAR_SERIALIZE_DESTROY(var_hash); variable
917 php_unserialize_data_t var_hash; local
[all...]
/PHP_5_4/ext/standard/
H A Dbasic_functions.h207 unsigned serialize_lock; /* whether to use the locally supplied var_hash instead (__sleep/__wakeup) */
209 void *var_hash; member in struct:_php_basic_globals::__anon234
213 void *var_hash; member in struct:_php_basic_globals::__anon235
H A Dphp_var.h52 PHPAPI void php_var_serialize(smart_str *buf, zval **struc, php_serialize_data_t *var_hash TSRMLS_DC);
53 PHPAPI int php_var_unserialize(zval **rval, const unsigned char **p, const unsigned char *max, php_unserialize_data_t *var_hash TSRMLS_DC);
62 BG(serialize).var_hash = (void *)(var_hash_ptr); \
66 (var_hash_ptr) = (php_serialize_data_t)BG(serialize).var_hash; \
79 zend_hash_destroy((php_serialize_data_t)BG(serialize).var_hash); \
80 FREE_HASHTABLE((php_serialize_data_t)BG(serialize).var_hash); \
81 BG(serialize).var_hash = NULL; \
92 BG(unserialize).var_hash = (void *)(var_hash_ptr); \
96 (var_hash_ptr) = (php_unserialize_data_t)BG(unserialize).var_hash; \
111 BG(unserialize).var_hash
[all...]
H A Dvar.c544 static void php_var_serialize_intern(smart_str *buf, zval *struc, HashTable *var_hash TSRMLS_DC);
546 static inline int php_add_var_hash(HashTable *var_hash, zval *var, void *var_old TSRMLS_DC) /* {{{ */ argument
562 if (var_old && zend_hash_find(var_hash, p, len, var_old) == SUCCESS) {
567 zend_hash_next_index_insert(var_hash, &var_no, sizeof(var_no), NULL);
576 var_no = zend_hash_num_elements(var_hash) + 1;
577 zend_hash_add(var_hash, p, len, &var_no, sizeof(var_no), NULL);
618 static void php_var_serialize_class(smart_str *buf, zval *struc, zval *retval_ptr, HashTable *var_hash TSRMLS_DC) /* {{{ */
669 php_var_serialize_intern(buf, *d, var_hash TSRMLS_CC);
682 php_var_serialize_intern(buf, *d, var_hash TSRMLS_CC);
690 php_var_serialize_intern(buf, *d, var_hash TSRMLS_C
918 php_serialize_data_t var_hash; local
953 php_unserialize_data_t var_hash; local
[all...]
H A Dvar_unserializer.c40 var_entries *var_hash = (*var_hashx)->last; local
42 fprintf(stderr, "var_push(%ld): %d\n", var_hash?var_hash->used_slots:-1L, Z_TYPE_PP(rval));
45 if (!var_hash || var_hash->used_slots == VAR_ENTRIES_MAX) {
46 var_hash = emalloc(sizeof(var_entries));
47 var_hash->used_slots = 0;
48 var_hash->next = 0;
51 (*var_hashx)->first = var_hash;
53 ((var_entries *) (*var_hashx)->last)->next = var_hash;
64 var_entries *var_hash = (*var_hashx)->last_dtor; local
89 var_entries *var_hash = (*var_hashx)->last_dtor; local
114 var_entries *var_hash = (*var_hashx)->first; local
132 var_entries *var_hash = (*var_hashx)->first; local
155 var_entries *var_hash = (*var_hashx)->first; local
[all...]
H A Dvar_unserializer.re38 var_entries *var_hash = (*var_hashx)->last;
40 fprintf(stderr, "var_push(%ld): %d\n", var_hash?var_hash->used_slots:-1L, Z_TYPE_PP(rval));
43 if (!var_hash || var_hash->used_slots == VAR_ENTRIES_MAX) {
44 var_hash = emalloc(sizeof(var_entries));
45 var_hash->used_slots = 0;
46 var_hash->next = 0;
49 (*var_hashx)->first = var_hash;
51 ((var_entries *) (*var_hashx)->last)->next = var_hash;
[all...]
/PHP_5_4/ext/sysvmsg/
H A Dsysvmsg.c363 php_unserialize_data_t var_hash; local
368 PHP_VAR_UNSERIALIZE_INIT(var_hash);
369 if (!php_var_unserialize(&tmp, &p, p + result, &var_hash TSRMLS_CC)) {
376 PHP_VAR_UNSERIALIZE_DESTROY(var_hash);
410 php_serialize_data_t var_hash; local
412 PHP_VAR_SERIALIZE_INIT(var_hash);
413 php_var_serialize(&msg_var, &message, &var_hash TSRMLS_CC);
414 PHP_VAR_SERIALIZE_DESTROY(var_hash);
/PHP_5_4/ext/sysvshm/
H A Dsysvshm.c249 php_serialize_data_t var_hash; local
256 PHP_VAR_SERIALIZE_INIT(var_hash);
257 php_var_serialize(&shm_var, &arg_var, &var_hash TSRMLS_CC);
258 PHP_VAR_SERIALIZE_DESTROY(var_hash);
290 php_unserialize_data_t var_hash; local
308 PHP_VAR_UNSERIALIZE_INIT(var_hash);
309 if (php_var_unserialize(&return_value, (const unsigned char **) &shm_data, (unsigned char *) shm_data + shm_var->length, &var_hash TSRMLS_CC) != 1) {
313 PHP_VAR_UNSERIALIZE_DESTROY(var_hash);
/PHP_5_4/ext/spl/
H A Dspl_observer.c749 php_serialize_data_t var_hash; local
756 PHP_VAR_SERIALIZE_INIT(var_hash);
762 php_var_serialize(&buf, &flags, &var_hash TSRMLS_CC);
770 PHP_VAR_SERIALIZE_DESTROY(var_hash);
773 php_var_serialize(&buf, &element->obj, &var_hash TSRMLS_CC);
775 php_var_serialize(&buf, &element->inf, &var_hash TSRMLS_CC);
786 php_var_serialize(&buf, &pmembers, &var_hash TSRMLS_CC); /* finishes the string */
789 PHP_VAR_SERIALIZE_DESTROY(var_hash);
808 php_unserialize_data_t var_hash; local
823 PHP_VAR_UNSERIALIZE_INIT(var_hash);
[all...]
H A Dspl_array.c1687 php_serialize_data_t var_hash; local
1700 PHP_VAR_SERIALIZE_INIT(var_hash);
1707 php_var_serialize(&buf, &flags, &var_hash TSRMLS_CC);
1711 php_var_serialize(&buf, &intern->array, &var_hash TSRMLS_CC);
1724 php_var_serialize(&buf, &pmembers, &var_hash TSRMLS_CC); /* finishes the string */
1727 PHP_VAR_SERIALIZE_DESTROY(var_hash);
1746 php_unserialize_data_t var_hash; local
1768 PHP_VAR_UNSERIALIZE_INIT(var_hash);
1776 if (!php_var_unserialize(&pflags, &p, s + buf_len, &var_hash TSRMLS_CC) || Z_TYPE_P(pflags) != IS_LONG) {
1802 if (!php_var_unserialize(&intern->array, &p, s + buf_len, &var_hash TSRMLS_C
[all...]
H A Dspl_dllist.c1146 php_serialize_data_t var_hash; local
1152 PHP_VAR_SERIALIZE_INIT(var_hash);
1157 php_var_serialize(&buf, &flags, &var_hash TSRMLS_CC);
1165 php_var_serialize(&buf, (zval **)&current->data, &var_hash TSRMLS_CC);
1173 PHP_VAR_SERIALIZE_DESTROY(var_hash);
1192 php_unserialize_data_t var_hash; local
1204 PHP_VAR_UNSERIALIZE_INIT(var_hash);
1208 if (!php_var_unserialize(&flags, &p, s + buf_len, &var_hash TSRMLS_CC) || Z_TYPE_P(flags) != IS_LONG) {
1219 if (!php_var_unserialize(&elem, &p, s + buf_len, &var_hash TSRMLS_CC)) {
1231 PHP_VAR_UNSERIALIZE_DESTROY(var_hash);
[all...]

Completed in 27 milliseconds