Searched refs:elements (Results 1 - 25 of 38) 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/Zend/
H A Dzend_llist.c199 zend_llist_element **elements; local
206 elements = (zend_llist_element **) emalloc(l->count * sizeof(zend_llist_element *));
208 ptr = &elements[0];
214 zend_qsort(elements, l->count, sizeof(zend_llist_element *), (compare_func_t) comp_func TSRMLS_CC);
216 l->head = elements[0];
217 elements[0]->prev = NULL;
220 elements[i]->prev = elements[i-1];
221 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.c29 stack->elements = NULL;
36 stack->elements = (void **) erealloc(stack->elements,
38 if (!stack->elements) {
42 stack->elements[stack->top] = (void *) emalloc(size);
43 memcpy(stack->elements[stack->top], element, size);
51 *element = stack->elements[stack->top - 1];
63 efree(stack->elements[--stack->top]);
95 if (stack->elements) {
97 efree(stack->elements[
[all...]
H A Dzend_stack.h27 void **elements; member in struct:_zend_stack
/PHP_TRUNK/ext/soap/
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 zend_hash_update(cur_type->elements, newType->name, strlen(newType->name)+1, &newType, sizeof(sdlTypePtr), (void **)&ptr);
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(cur_type->elements, &newType, sizeof(sdlTypePtr), (void **)&tmp);
469 if (cur_type->elements == NULL) {
470 cur_type->elements
[all...]
H A Dphp_sdl.c74 if (sdl->elements) {
92 if (zend_hash_find(sdl->elements, nscat, len + 1, (void **)&sdl_type) == SUCCESS) {
94 } else if (zend_hash_find(sdl->elements, (char*)type, type_len + 1, (void **)&sdl_type) == SUCCESS) {
99 if (zend_hash_find(sdl->elements, (char*)type, xmlStrlen(type) + 1, (void **)&sdl_type) == SUCCESS) {
1282 static sdlContentModelPtr sdl_deserialize_model(sdlTypePtr *types, sdlTypePtr *elements, char **in) argument
1293 model->u.element = elements[i];
1302 sdlContentModelPtr x = sdl_deserialize_model(types, elements, in);
1323 sdlTypePtr *elements = NULL; local
1370 elements = safe_emalloc((i+1), sizeof(sdlTypePtr), 0);
1371 elements[
[all...]
H A Dphp_sdl.h57 HashTable *elements; /* array of sdlTypesPtr */ member in struct:_sdl
204 HashTable *elements; /* array of sdlTypePtr */ member in struct:_sdlType
/PHP_TRUNK/ext/spl/
H A Dspl_heap.c59 spl_ptr_heap_element *elements; member in struct:_spl_ptr_heap
231 heap->elements = safe_emalloc(sizeof(spl_ptr_heap_element), PTR_HEAP_BLOCK_SIZE, 0);
245 heap->elements = (void **) safe_erealloc(heap->elements, sizeof(spl_ptr_heap_element), (heap->max_size), (sizeof(spl_ptr_heap_element) * (heap->max_size)));
252 for(i = heap->count++; i > 0 && heap->cmp(heap->elements[(i-1)/2], elem, cmp_userdata TSRMLS_CC) < 0; i = (i-1)/2) {
253 heap->elements[i] = heap->elements[(i-1)/2];
261 heap->elements[i] = elem;
271 return heap->elements[0];
285 top = heap->elements[
[all...]
H A Dspl_fixedarray.c47 zval **elements; member in struct:_spl_fixedarray
82 array->elements = ecalloc(size, sizeof(zval *));
85 array->elements = NULL;
109 if (array->elements[i]) {
110 zval_ptr_dtor(&(array->elements[i]));
114 if (array->elements) {
115 efree(array->elements);
116 array->elements = NULL;
119 array->elements = safe_erealloc(array->elements, siz
[all...]
/PHP_TRUNK/sapi/apache_hooks/
H A Dmod_php5.c59 void **elements; member in struct:_sapi_stack
119 stack->elements = (void **) pemalloc(sizeof(void **) * STACK_BLOCK_SIZE, persistent);
120 if (!stack->elements) {
130 stack->elements = (void **) perealloc(stack->elements,
132 if (!stack->elements) {
136 stack->elements[stack->top] = (void *) element;
144 return stack->elements[--stack->top];
160 retval = apply_function(stack->elements[i], arg);
165 retval = apply_function(stack->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 if (((st_entry *)stack->elements[i])->data) {
234 zval_ptr_dtor(&((st_entry *)stack->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, 1);
1069 add_next_index_stringl(bind->zval, (char *)(((text *)bind->array.elements)+i*bind->array.max_length), curr_element_length, 1);
1602 (dvoid *) bindp->array.elements,
[all...]
/PHP_TRUNK/ext/simplexml/
H A Dsimplexml.c248 static zval * sxe_prop_dim_read(zval *object, zval *member, zend_bool elements, zend_bool attribs, int type TSRMLS_DC) argument
264 elements = 1;
285 elements = 0;
330 if (elements) {
343 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot add element %s number %ld when only 0 such elements exist", mynode->name, Z_LVAL_P(member));
354 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot add element %s number %ld when only %ld such elements exist", mynode->name, Z_LVAL_P(member), cnt);
452 static int sxe_prop_dim_write(zval *object, zval *member, zval *value, zend_bool elements, zend_bool attribs, xmlNodePtr *pnewnode TSRMLS_DC) argument
474 elements = 1;
506 elements = 0;
591 if (elements) {
736 sxe_prop_dim_exists(zval *object, zval *member, int check_empty, zend_bool elements, zend_bool attribs TSRMLS_DC) argument
865 sxe_prop_dim_delete(zval *object, zval *member, zend_bool elements, zend_bool attribs TSRMLS_DC) argument
[all...]
/PHP_TRUNK/ext/standard/
H A Dvar_unserializer.c292 static inline int process_nested_data(UNSERIALIZE_PARAMETER, HashTable *ht, long elements, int objprops) argument
294 while (elements-- > 0) {
346 if (elements && *(*p-1) != ';' && *(*p-1) != '}') {
393 long elements; local
395 elements = parse_iv2((*p) + 2, p);
408 return elements;
414 static inline int object_common2(UNSERIALIZE_PARAMETER, long elements) argument
423 if (!process_nested_data(UNSERIALIZE_PASSTHRU, Z_OBJPROP_PP(rval), elements, 1)) {
616 long elements; local
750 elements
815 long elements = parse_iv(start + 2); local
[all...]
H A Dvar_unserializer.re296 static inline int process_nested_data(UNSERIALIZE_PARAMETER, HashTable *ht, long elements, int objprops)
298 while (elements-- > 0) {
350 if (elements && *(*p-1) != ';' && *(*p-1) != '}') {
397 long elements;
399 elements = parse_iv2((*p) + 2, p);
412 return elements;
418 static inline int object_common2(UNSERIALIZE_PARAMETER, long elements)
427 if (!process_nested_data(UNSERIALIZE_PASSTHRU, Z_OBJPROP_PP(rval), elements, 1)) {
645 long elements = parse_iv(start + 2);
649 if (elements <
[all...]

Completed in 33 milliseconds

12