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/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.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/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/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 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) {
1275 static sdlContentModelPtr sdl_deserialize_model(sdlTypePtr *types, sdlTypePtr *elements, char **in) argument
1286 model->u.element = elements[i];
1295 sdlContentModelPtr x = sdl_deserialize_model(types, elements, in);
1316 sdlTypePtr *elements = NULL; local
1363 elements = safe_emalloc((i+1), sizeof(sdlTypePtr), 0);
1364 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/standard/
H A Dvar_unserializer.c299 static inline int process_nested_data(UNSERIALIZE_PARAMETER, HashTable *ht, zend_long elements, int objprops) argument
301 while (elements-- > 0) {
361 if (elements && *(*p-1) != ';' && *(*p-1) != '}') {
408 zend_long elements; local
410 elements = parse_iv2((*p) + 2, p);
423 return elements;
429 static inline int object_common2(UNSERIALIZE_PARAMETER, zend_long elements) argument
439 if (!process_nested_data(UNSERIALIZE_PASSTHRU, Z_OBJPROP_P(rval), elements, 1)) {
628 zend_long elements; local
755 elements
820 zend_long elements = parse_iv(start + 2); local
[all...]
H A Dvar_unserializer.re303 static inline int process_nested_data(UNSERIALIZE_PARAMETER, HashTable *ht, zend_long elements, int objprops)
305 while (elements-- > 0) {
365 if (elements && *(*p-1) != ';' && *(*p-1) != '}') {
412 zend_long elements;
414 elements = parse_iv2((*p) + 2, p);
427 return elements;
433 static inline int object_common2(UNSERIALIZE_PARAMETER, zend_long elements)
443 if (!process_nested_data(UNSERIALIZE_PASSTHRU, Z_OBJPROP_P(rval), elements, 1)) {
653 zend_long elements = parse_iv(start + 2);
657 if (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);
1602 (dvoid *) bindp->array.elements,
[all...]
/PHP_TRUNK/ext/spl/
H A Dspl_fixedarray.c47 zval *elements; member in struct:_spl_fixedarray
88 array->elements = ecalloc(size, sizeof(zval));
91 array->elements = NULL;
115 zval_ptr_dtor(&(array->elements[i]));
118 if (array->elements) {
119 efree(array->elements);
120 array->elements = NULL;
123 array->elements = safe_erealloc(array->elements, size, sizeof(zval), 0);
124 memset(array->elements
[all...]
H A Dspl_heap.c58 zval *elements; member in struct:_spl_ptr_heap
234 heap->elements = ecalloc(PTR_HEAP_BLOCK_SIZE, sizeof(zval));
248 heap->elements = erealloc(heap->elements, heap->max_size * 2 * sizeof(zval));
249 memset(heap->elements + heap->max_size, 0, heap->max_size * sizeof(zval));
256 for (i = heap->count++; i > 0 && heap->cmp(&heap->elements[(i-1)/2], elem, cmp_userdata TSRMLS_CC) < 0; i = (i-1)/2) {
257 heap->elements[i] = heap->elements[(i-1)/2];
265 ZVAL_COPY_VALUE(&heap->elements[i], elem);
274 return Z_ISUNDEF(heap->elements[
[all...]
/PHP_TRUNK/ext/simplexml/
H A Dsimplexml.c246 static zval *sxe_prop_dim_read(zval *object, zval *member, zend_bool elements, zend_bool attribs, int type, zval *rv TSRMLS_DC) argument
261 elements = 1;
282 elements = 0;
326 if (elements) {
339 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot add element %s number %pd when only 0 such elements exist", mynode->name, Z_LVAL_P(member));
350 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot add element %s number %pd when only %pd such elements exist", mynode->name, Z_LVAL_P(member), cnt);
446 static int sxe_prop_dim_write(zval *object, zval *member, zval *value, zend_bool elements, zend_bool attribs, xmlNodePtr *pnewnode TSRMLS_DC) argument
468 elements = 1;
500 elements = 0;
587 if (elements) {
729 sxe_prop_dim_exists(zval *object, zval *member, int check_empty, zend_bool elements, zend_bool attribs TSRMLS_DC) argument
858 sxe_prop_dim_delete(zval *object, zval *member, zend_bool elements, zend_bool attribs TSRMLS_DC) argument
[all...]
/PHP_TRUNK/ext/wddx/
H A Dwddx.c99 void **elements; member in struct:__anon62
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...]

Completed in 24 milliseconds

12