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) /* {{{ */
793 php_serialize_data_t var_hash; local
796 PHP_VAR_SERIALIZE_INIT(var_hash);
802 php_var_serialize(&buf, struc, &var_hash TSRMLS_CC);
814 PHP_VAR_SERIALIZE_DESTROY(var_hash);
828 php_unserialize_data_t var_hash; local
830 PHP_VAR_UNSERIALIZE_INIT(var_hash);
855 if (php_var_unserialize(&current, (const unsigned char **) &p, (const unsigned char *) endptr, &var_hash TSRMLS_CC)) {
856 php_set_session_var(name, namelen, current, &var_hash TSRMLS_CC);
864 PHP_VAR_UNSERIALIZE_DESTROY(var_hash);
876 php_serialize_data_t var_hash; local
903 PHP_VAR_SERIALIZE_DESTROY(var_hash); variable
916 php_unserialize_data_t var_hash; local
[all...]
/PHP_5_4/ext/spl/
H A Dspl_array.c1680 php_serialize_data_t var_hash; local
1693 PHP_VAR_SERIALIZE_INIT(var_hash);
1700 php_var_serialize(&buf, &flags, &var_hash TSRMLS_CC);
1704 php_var_serialize(&buf, &intern->array, &var_hash TSRMLS_CC);
1717 php_var_serialize(&buf, &pmembers, &var_hash TSRMLS_CC); /* finishes the string */
1720 PHP_VAR_SERIALIZE_DESTROY(var_hash);
1739 php_unserialize_data_t var_hash; local
1754 PHP_VAR_UNSERIALIZE_INIT(var_hash);
1762 if (!php_var_unserialize(&pflags, &p, s + buf_len, &var_hash TSRMLS_CC) || Z_TYPE_P(pflags) != IS_LONG) {
1788 if (!php_var_unserialize(&intern->array, &p, s + buf_len, &var_hash TSRMLS_C
[all...]
H A Dspl_dllist.c1143 php_serialize_data_t var_hash; local
1149 PHP_VAR_SERIALIZE_INIT(var_hash);
1154 php_var_serialize(&buf, &flags, &var_hash TSRMLS_CC);
1162 php_var_serialize(&buf, (zval **)&current->data, &var_hash TSRMLS_CC);
1170 PHP_VAR_SERIALIZE_DESTROY(var_hash);
1189 php_unserialize_data_t var_hash; local
1201 PHP_VAR_UNSERIALIZE_INIT(var_hash);
1205 if (!php_var_unserialize(&flags, &p, s + buf_len, &var_hash TSRMLS_CC) || Z_TYPE_P(flags) != IS_LONG) {
1216 if (!php_var_unserialize(&elem, &p, s + buf_len, &var_hash TSRMLS_CC)) {
1228 PHP_VAR_UNSERIALIZE_DESTROY(var_hash);
[all...]
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...]
/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.c39 var_entries *var_hash = (*var_hashx)->last; local
41 fprintf(stderr, "var_push(%ld): %d\n", var_hash?var_hash->used_slots:-1L, Z_TYPE_PP(rval));
44 if (!var_hash || var_hash->used_slots == VAR_ENTRIES_MAX) {
45 var_hash = emalloc(sizeof(var_entries));
46 var_hash->used_slots = 0;
47 var_hash->next = 0;
50 (*var_hashx)->first = var_hash;
52 ((var_entries *) (*var_hashx)->last)->next = var_hash;
63 var_entries *var_hash = (*var_hashx)->last_dtor; local
88 var_entries *var_hash = (*var_hashx)->last_dtor; local
113 var_entries *var_hash = (*var_hashx)->first; local
131 var_entries *var_hash = (*var_hashx)->first; local
154 var_entries *var_hash = (*var_hashx)->first; local
[all...]
H A Dvar_unserializer.re37 var_entries *var_hash = (*var_hashx)->last;
39 fprintf(stderr, "var_push(%ld): %d\n", var_hash?var_hash->used_slots:-1L, Z_TYPE_PP(rval));
42 if (!var_hash || var_hash->used_slots == VAR_ENTRIES_MAX) {
43 var_hash = emalloc(sizeof(var_entries));
44 var_hash->used_slots = 0;
45 var_hash->next = 0;
48 (*var_hashx)->first = var_hash;
50 ((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);

Completed in 63 milliseconds