Searched refs:elements (Results 1 - 25 of 39) sorted by relevance

12

/PHP_TRUNK/ext/spl/examples/
H A Dcallbackfilteriterator.inc21 const USE_FALSE = 0; /**< mode: accept no elements, no callback */
22 const USE_TRUE = 1; /**< mode: accept all elements, no callback */
H A Ddbareader.inc78 * @return Whether more elements are available.
H A Dkeyfilter.inc17 * Instances of this class act as a filter around iterators whose elements
19 * and the instance will only return elements which match the given regular
/PHP_TRUNK/ext/spl/internal/
H A Dfilteriterator.inc20 * return selected (accepted) elements.
81 * @return Whether more elements are available
H A Dlimititerator.inc19 * a specified amount of elements.
35 * @param count Maximum number of elements to show or -1 for all
H A Dparentiterator.inc19 * RecursiveIteratorIterator that only shows those elements which have
H A Drecursivearrayiterator.inc39 /** @return an iterator for the current elements children
H A Drecursivefilteriterator.inc46 /** @return an iterator for the current elements children
H A Drecursiveregexiterator.inc45 /** @return an iterator for the current elements children
/PHP_TRUNK/ext/soap/
H A Dphp_sdl.h57 HashTable *elements; /* array of sdlTypesPtr */ member in struct:_sdl
204 HashTable *elements; /* array of sdlTypePtr */ member in struct:_sdlType
H A Dphp_schema.c360 if (cur_type->elements == NULL) {
361 cur_type->elements = emalloc(sizeof(HashTable));
362 zend_hash_init(cur_type->elements, 0, NULL, delete_type, 0);
364 ptr = zend_hash_str_update_ptr(cur_type->elements, newType->name, strlen(newType->name), newType);
434 if (cur_type->elements == NULL) {
435 cur_type->elements = emalloc(sizeof(HashTable));
436 zend_hash_init(cur_type->elements, 0, NULL, delete_type, 0);
438 zend_hash_next_index_insert_ptr(cur_type->elements, newType);
471 if (cur_type->elements == NULL) {
472 cur_type->elements
[all...]
H A Dphp_sdl.c75 if (sdl->elements) {
93 if ((sdl_type = zend_hash_str_find_ptr(sdl->elements, nscat, len)) != NULL) {
95 } else if ((sdl_type = zend_hash_str_find_ptr(sdl->elements, (char*)type, type_len)) != NULL) {
100 if ((sdl_type = zend_hash_str_find_ptr(sdl->elements, (char*)type, xmlStrlen(type))) != NULL) {
1274 static sdlContentModelPtr sdl_deserialize_model(sdlTypePtr *types, sdlTypePtr *elements, char **in) argument
1285 model->u.element = elements[i];
1294 sdlContentModelPtr x = sdl_deserialize_model(types, elements, in);
1315 sdlTypePtr *elements = NULL; local
1362 elements = safe_emalloc((i+1), sizeof(sdlTypePtr), 0);
1363 elements[
[all...]
/PHP_TRUNK/Zend/
H A Dzend_llist.c200 zend_llist_element **elements; local
207 elements = (zend_llist_element **) emalloc(l->count * sizeof(zend_llist_element *));
209 ptr = &elements[0];
215 zend_sort(elements, l->count, sizeof(zend_llist_element *),
218 l->head = elements[0];
219 elements[0]->prev = NULL;
222 elements[i]->prev = elements[i-1];
223 elements[i-1]->next = elements[
[all...]
H A Dzend_ptr_stack.c30 stack->top_element = stack->elements = NULL;
78 if (stack->elements) {
79 pefree(stack->elements, stack->persistent);
89 func(stack->elements[i]);
101 pefree(stack->elements[i], stack->persistent);
105 stack->top_element = stack->elements;
H A Dzend_ptr_stack.h27 void **elements; member in struct:_zend_ptr_stack
52 stack->elements = (void **) perealloc(stack->elements, (sizeof(void *) * (stack->max)), stack->persistent); \
53 stack->top_element = stack->elements+stack->top; \
116 return stack->elements[stack->top - 1];
H A Dzend_stack.c25 #define ZEND_STACK_ELEMENT(stack, n) ((void *)((char *) (stack)->elements + (stack)->size * (n)))
32 stack->elements = NULL;
41 stack->elements = safe_erealloc(stack->elements, stack->size, stack->max, 0);
84 if (stack->elements) {
85 efree(stack->elements);
86 stack->elements = NULL;
95 return stack->elements;
160 if (stack->elements) {
161 efree(stack->elements);
[all...]
H A Dzend_stack.h27 void *elements; member in struct:_zend_stack
/PHP_TRUNK/ext/json/
H A Djson_parser.y66 %type <value> members member elements element
161 '[' { PHP_JSON_DEPTH_INC; } elements array_end
177 elements: label
/PHP_TRUNK/ext/spl/
H A Dspl_fixedarray.c47 zval *elements; member in struct:_spl_fixedarray
87 array->elements = ecalloc(size, sizeof(zval));
90 array->elements = NULL;
114 zval_ptr_dtor(&(array->elements[i]));
117 if (array->elements) {
118 efree(array->elements);
119 array->elements = NULL;
122 array->elements = safe_erealloc(array->elements, size, sizeof(zval), 0);
123 memset(array->elements
[all...]
H A Dspl_heap.c58 zval *elements; member in struct:_spl_ptr_heap
230 heap->elements = ecalloc(PTR_HEAP_BLOCK_SIZE, sizeof(zval));
244 heap->elements = erealloc(heap->elements, heap->max_size * 2 * sizeof(zval));
245 memset(heap->elements + heap->max_size, 0, heap->max_size * sizeof(zval));
250 for (i = heap->count; i > 0 && heap->cmp(&heap->elements[(i-1)/2], elem, cmp_userdata) < 0; i = (i-1)/2) {
251 heap->elements[i] = heap->elements[(i-1)/2];
260 ZVAL_COPY_VALUE(&heap->elements[i], elem);
269 return Z_ISUNDEF(heap->elements[
[all...]
/PHP_TRUNK/ext/wddx/
H A Dwddx.c99 void **elements; member in struct:__anon3
176 stack->elements = (void **) safe_emalloc(sizeof(void **), STACK_BLOCK_SIZE, 0);
190 stack->elements = (void **) erealloc(stack->elements,
193 stack->elements[stack->top] = (void *) emalloc(size);
194 memcpy(stack->elements[stack->top], element, size);
204 *element = stack->elements[stack->top - 1];
231 if (stack->elements) {
233 zval_ptr_dtor(&((st_entry *)stack->elements[i])->data);
234 if (((st_entry *)stack->elements[
[all...]
/PHP_TRUNK/ext/standard/
H A Dvar_unserializer.c329 static zend_always_inline int process_nested_data(UNSERIALIZE_PARAMETER, HashTable *ht, zend_long elements, int objprops) argument
331 while (elements-- > 0) {
401 if (elements && *(*p-1) != ';' && *(*p-1) != '}') {
448 zend_long elements; local
450 elements = parse_iv2((*p) + 2, p);
463 return elements;
469 static inline int object_common2(UNSERIALIZE_PARAMETER, zend_long elements) argument
480 zend_hash_extend(ht, zend_hash_num_elements(ht) + elements, (ht->u.flags & HASH_FLAG_PACKED));
481 if (!process_nested_data(UNSERIALIZE_PASSTHRU, ht, elements, 1)) {
677 zend_long elements; local
875 zend_long elements = parse_iv(start + 2); local
[all...]
H A Dvar_unserializer.re333 static zend_always_inline int process_nested_data(UNSERIALIZE_PARAMETER, HashTable *ht, zend_long elements, int objprops)
335 while (elements-- > 0) {
405 if (elements && *(*p-1) != ';' && *(*p-1) != '}') {
452 zend_long elements;
454 elements = parse_iv2((*p) + 2, p);
467 return elements;
473 static inline int object_common2(UNSERIALIZE_PARAMETER, zend_long elements)
484 zend_hash_extend(ht, zend_hash_num_elements(ht) + elements, (ht->u.flags & HASH_FLAG_PACKED));
485 if (!process_nested_data(UNSERIALIZE_PASSTHRU, ht, elements, 1)) {
702 zend_long elements
[all...]
/PHP_TRUNK/ext/oci8/
H A Doci8_statement.c1003 ZVAL_LONG(entry, ((ub4 *)(bind->array.elements))[i]);
1006 add_next_index_long(bind->zval, ((ub4 *)(bind->array.elements))[i]);
1014 ZVAL_DOUBLE(entry, ((double *)(bind->array.elements))[i]);
1017 add_next_index_double(bind->zval, ((double *)(bind->array.elements))[i]);
1029 PHP_OCI_CALL_RETURN(errstatus, OCIDateToText, (connection->err, &(((OCIDate *)(bind->array.elements))[i]), 0, 0, 0, 0, &buff_len, buff));
1042 PHP_OCI_CALL_RETURN(errstatus, OCIDateToText, (connection->err, &(((OCIDate *)(bind->array.elements))[i]), 0, 0, 0, 0, &buff_len, buff));
1062 /* int curr_element_length = strlen(((text *)bind->array.elements)+i*bind->array.max_length); */
1066 ZVAL_STRINGL(entry, (char *)(((text *)bind->array.elements)+i*bind->array.max_length), curr_element_length);
1069 add_next_index_stringl(bind->zval, (char *)(((text *)bind->array.elements)+i*bind->array.max_length), curr_element_length);
1629 (dvoid *) bind->array.elements,
[all...]
/PHP_TRUNK/ext/simplexml/
H A Dsimplexml.c235 static zval *sxe_prop_dim_read(zval *object, zval *member, zend_bool elements, zend_bool attribs, int type, zval *rv) argument
250 elements = 1;
269 elements = 0;
313 if (elements) {
326 php_error_docref(NULL, E_WARNING, "Cannot add element %s number %pd when only 0 such elements exist", mynode->name, Z_LVAL_P(member));
337 php_error_docref(NULL, E_WARNING, "Cannot add element %s number %pd when only %pd such elements exist", mynode->name, Z_LVAL_P(member), cnt);
433 static int sxe_prop_dim_write(zval *object, zval *member, zval *value, zend_bool elements, zend_bool attribs, xmlNodePtr *pnewnode) argument
456 elements = 1;
486 elements = 0;
571 if (elements) {
712 sxe_prop_dim_exists(zval *object, zval *member, int check_empty, zend_bool elements, zend_bool attribs) argument
839 sxe_prop_dim_delete(zval *object, zval *member, zend_bool elements, zend_bool attribs) argument
[all...]

Completed in 120 milliseconds

12