Searched defs:array (Results 1 - 25 of 28) sorted by relevance

12

/PHP_5_3/scripts/dev/generate-phpt/tests/
H A DgtCodeSnippetTest.php10 $array = array('something', 'nothing'); variable
11 $array = gtCodeSnippet::append('loopClose', $array); variable
12 $this->assertEquals($array[2], '}');
/PHP_5_3/ext/intl/collator/
H A Dcollator_sort.c291 zval* array = NULL; local
300 &object, Collator_ce_ptr, &array, &sort_flags ) == FAILURE )
314 hash = HASH_OF( array );
316 /* Convert strings in the specified array from UTF-8 to UTF-16. */
324 /* Sort specified array. */
330 /* Convert strings in the specified array back to UTF-8. */
338 /* {{{ proto bool Collator::sort( Collator $coll, array(string) $arr [, int $sort_flags] )
339 * Sort array using specified collator. }}} */
340 /* {{{ proto bool collator_sort( Collator $coll, array(string) $arr [, int $sort_flags] )
341 * Sort array usin
358 zval* array = NULL; local
[all...]
/PHP_5_3/ext/com_dotnet/
H A Dcom_misc.c94 * element from a (possibly multi-dimensional) safe array */
95 PHP_COM_DOTNET_API int php_com_safearray_get_elem(VARIANT *array, VARIANT *dest, LONG dim1 TSRMLS_DC) argument
102 if (!V_ISARRAY(array)) {
106 dims = SafeArrayGetDim(V_ARRAY(array));
110 "Can only handle single dimension variant arrays (this array has %d)", dims);
114 if (FAILED(SafeArrayGetVartype(V_ARRAY(array), &vt)) || vt == VT_EMPTY) {
115 vt = V_VT(array) & ~VT_ARRAY;
119 SafeArrayGetLBound(V_ARRAY(array), 1, &lbound);
120 SafeArrayGetUBound(V_ARRAY(array), 1, &ubound);
134 SafeArrayGetElement(V_ARRAY(array), indice
[all...]
/PHP_5_3/ext/ereg/
H A Dereg.c292 **array = NULL; /* Optional register array */ local
305 if (zend_parse_parameters(argc TSRMLS_CC, "Zs|Z", &regex, &findin, &findin_len, &array) == FAILURE) {
351 if (array && err != REG_NOMATCH) {
357 zval_dtor(*array); /* start with clean array */
358 array_init(*array);
364 add_index_stringl(*array, i, string+start, end-start, 1);
366 add_index_bool(*array, i, 0);
385 /* {{{ proto int ereg(string pattern, string string [, array register
[all...]
/PHP_5_3/ext/interbase/
H A Dibase_query.c45 ISC_LONG ar_size; /* size of entire array in bytes */
291 * These types are mentioned as array types in the manual, but I
292 * wouldn't know how to create an array field with any of these
297 _php_ibase_module_error("Unsupported array type %d in relation '%s' column '%s'"
436 ibase_array *array, int dim TSRMLS_DC)
439 int u_bound = array->ar_desc.array_desc_bounds[dim].array_bound_upper,
440 l_bound = array->ar_desc.array_desc_bounds[dim].array_bound_lower,
445 if (dim < array->ar_desc.array_desc_dimensions) {
462 if (_php_ibase_bind_array(*subval, buf, slice_size, array, dim+1 TSRMLS_CC) == FAILURE)
481 } else if (array
435 _php_ibase_bind_array(zval *val, char *buf, unsigned long buf_size, ibase_array *array, int dim TSRMLS_DC) argument
[all...]
/PHP_5_3/ext/mbstring/
H A Dmbstring.c787 php_mb_parse_encoding_array(zval *array, enum mbfl_no_encoding **return_list, int *return_size, int persistent TSRMLS_DC) argument
796 if (Z_TYPE_P(array) == IS_ARRAY) {
803 target_hash = Z_ARRVAL_P(array);
1723 /* {{{ proto bool|array mb_detect_order([mixed encoding-list])
1724 Sets the current detect_order or Return the current detect_order as a array */
1874 /* {{{ proto bool mb_parse_str(string encoded_string [, array result])
1889 /* Clear out the array */
3077 Returns an array of all supported entity encodings */
3093 /* {{{ proto array mb_encoding_aliases(string encoding)
3094 Returns an array o
[all...]
H A Dphp_mbregex.c692 zval **arg_pattern, *array; local
701 array = NULL;
703 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Zs|z", &arg_pattern, &string, &string_len, &array) == FAILURE) {
744 if (array != NULL) {
746 zval_dtor(array);
747 array_init(array);
752 add_index_stringl(array, i, (char *)&str[beg], end - beg, 1);
754 add_index_bool(array, i, 0);
770 /* {{{ proto int mb_ereg(string pattern, string string [, array registers])
778 /* {{{ proto int mb_eregi(string pattern, string string [, array register
[all...]
/PHP_5_3/ext/oci8/
H A Doci8.c1533 if (bind->array.elements) {
1534 efree(bind->array.elements);
1537 if (bind->array.element_lengths) {
1538 efree(bind->array.element_lengths);
1541 if (bind->array.indicators) {
1542 efree(bind->array.indicators);
2573 zval *z_statement, *array; local
2583 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rz|l", &z_statement, &array, &fetch_mode) == FAILURE) {
2666 /* Only for ocifetchinto BC. In all other cases we return array, not long */
2667 REPLACE_ZVAL_VALUE(&array, return_valu
[all...]
H A Doci8_interface.c125 /* {{{ proto bool oci_bind_array_by_name(resource stmt, string name, array &var, int max_table_length [, int max_item_length [, int type ]])
126 Bind a PHP array to an Oracle PL/SQL type by name */
149 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Maximum array length must be greater than zero");
1382 /* {{{ proto int ocifetchinto(resource stmt, array &output [, int mode])
1383 Fetch a row of result data into an array */
1390 /* {{{ proto int oci_fetch_all(resource stmt, array &output[, int skip[, int maxrows[, int flags]]])
1391 Fetch all rows of result data into an array */
1394 zval *z_statement, *array, *element, *tmp; local
1402 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rz/|lll", &z_statement, &array, &skip, &maxrows, &flags) == FAILURE) {
1408 zval_dtor(array);
[all...]
H A Dphp_oci8_int.h221 } array; member in struct:__anon115
/PHP_5_3/ext/session/
H A Dsession.c357 zval **array; local
363 if (zend_hash_find(&EG(symbol_table), "_SERVER", sizeof("_SERVER"), (void **) &array) == SUCCESS &&
364 Z_TYPE_PP(array) == IS_ARRAY &&
365 zend_hash_find(Z_ARRVAL_PP(array), "REMOTE_ADDR", sizeof("REMOTE_ADDR"), (void **) &token) == SUCCESS
1566 /* {{{ proto array session_get_cookie_params(void)
/PHP_5_3/ext/soap/
H A Dphp_encoding.c87 static int is_map(zval *array);
88 static encodePtr get_array_type(xmlNodePtr node, zval *array, smart_str *out_type TSRMLS_DC);
1313 /* Convert into array */
1343 /* Convert into array */
1355 /* Add array element */
1360 /* Convert into array */
1416 zval *array; local
1418 MAKE_STD_ZVAL(array);
1419 array_init(array);
1420 add_next_index_zval(array, va
1446 zval *array; local
3632 is_map(zval *array) argument
3650 get_array_type(xmlNodePtr node, zval *array, smart_str *type TSRMLS_DC) argument
[all...]
/PHP_5_3/ext/standard/
H A Darray.c91 ZEND_DECLARE_MODULE_GLOBALS(array)
101 PHP_MINIT_FUNCTION(array) /* {{{ */
103 ZEND_INIT_MODULE_GLOBALS(array, php_array_init_globals, NULL);
132 PHP_MSHUTDOWN_FUNCTION(array) /* {{{ */
228 /* {{{ proto bool krsort(array &array_arg [, int sort_flags])
229 Sort an array by key value in reverse order */
232 zval *array; local
235 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a|l", &array, &sort_type) == FAILURE) {
241 if (zend_hash_sort(Z_ARRVAL_P(array), zend_qsort, php_array_reverse_key_compare, 0 TSRMLS_CC) == FAILURE) {
248 /* {{{ proto bool ksort(array
252 zval *array; local
268 php_count_recursive(zval *array, long mode TSRMLS_DC) argument
302 zval *array; local
452 zval *array; local
492 zval *array; local
512 zval *array; local
532 zval *array; local
552 zval *array; local
631 zval *array; local
674 zval *array; local
770 zval *array; local
813 HashTable *array; local
836 HashTable *array; local
859 HashTable *array; local
882 HashTable *array; local
905 HashTable *array; local
923 HashTable *array; local
1144 HashTable *array; local
1169 HashTable *array; local
1197 *array, /* array to check in */ local
1823 zval *array; local
2072 zval *array, /* Input array */ local
2683 zval *array, **entry, *data; local
2726 zval *array, **entry; local
2769 zval *array, *tmp; local
4160 zval *array; local
4362 HashTable *array; /* array to check in */ local
[all...]
H A Dexec.c57 * If type==2, all lines will be saved to given array (exec with &$array)
61 PHPAPI int php_exec(int type, char *cmd, zval *array, zval *return_value TSRMLS_DC) argument
154 add_next_index_stringl(array, buf, bufl, 1);
168 add_next_index_stringl(array, buf, bufl, 1);
246 /* {{{ proto string exec(string command [, array &output [, int &return_value]])
H A Dformatted_print.c397 zval **array; local
400 array = args[1 + format_offset];
402 SEPARATE_ZVAL(array);
403 convert_to_array_ex(array);
405 argc = 1 + zend_hash_num_elements(Z_ARRVAL_PP(array));
409 for (zend_hash_internal_pointer_reset(Z_ARRVAL_PP(array));
410 zend_hash_get_current_data(Z_ARRVAL_PP(array), (void **)&newargs[i++]) == SUCCESS;
411 zend_hash_move_forward(Z_ARRVAL_PP(array)));
681 /* {{{ proto string vsprintf(string format, array args)
711 /* {{{ proto int vprintf(string format, array arg
[all...]
H A Dphp_array.h27 PHP_MINIT_FUNCTION(array); variable
28 PHP_MSHUTDOWN_FUNCTION(array); variable
117 ZEND_BEGIN_MODULE_GLOBALS(array)
120 ZEND_END_MODULE_GLOBALS(array)
/PHP_5_3/ext/sysvsem/
H A Dsysvsem.c50 unsigned short int *array; /* array for GETALL, SETALL */ member in union:semun
/PHP_5_3/main/streams/
H A Duserspace.c179 return array( just like that returned by fstat() );
211 return array( just like that returned by stat() );
853 static int statbuf_from_array(zval *array, php_stream_statbuf *ssb TSRMLS_DC) argument
858 if (SUCCESS == zend_hash_find(Z_ARRVAL_P(array), #name, sizeof(#name), (void**)&elem)) { \
/PHP_5_3/Zend/
H A Dzend_dynamic_array.c25 char *array; member in struct:_dynamic_array
36 da->array = (char *) emalloc(size*element_size);
37 if (da->array == NULL) {
47 da->array = (char *) erealloc(da->array, da->allocated*da->element_size);
49 return (void *)(da->array+(da->current++)*da->element_size);
54 return (void *)(da->array+(--(da->current))*da->element_size);
63 return (void *)(da->array+index*da->element_size);
H A Dzend_dynamic_array.h26 char *array; member in struct:_dynamic_array
H A Dzend_builtin_functions.c421 /* {{{ proto array func_get_args()
422 Get an array of the arguments that were passed to the function */
544 /* {{{ proto array each(array arr)
545 Return the currently pointed key..value pair in the passed array, and advance the pointer to the next element */
548 zval *array, *entry, **entry_ptr, *tmp; local
555 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &array) == FAILURE) {
559 target_hash = HASH_OF(array);
561 zend_error(E_WARNING,"Variable passed to each() is not an array or object");
911 /* this is necessary to make it able to work with default array
1554 zval *array = va_arg(args, zval *); local
[all...]
H A Dzend_compile.c1544 zend_error(E_COMPILE_ERROR, "Default value for parameters with array type hint can only be an array or NULL");
2596 /* Only one has an array type hint and the other one doesn't */
4486 void zend_do_foreach_begin(znode *foreach_token, znode *open_brackets_token, znode *array, znode *as_token, int variable TSRMLS_DC) /* {{{ */ argument
4494 if (zend_is_function_or_method_call(array)) {
4501 zend_do_end_variable_parse(array, BP_VAR_W, 0 TSRMLS_CC);
4520 /* Preform array reset */
4524 opline->op1 = *array;
4584 zend_error(E_COMPILE_ERROR, "Cannot create references to elements of a temporary array expression");
H A Dzend_vm_def.h423 zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
1067 zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
1083 zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
1115 zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
1139 zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
1157 zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
1174 zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
1201 zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
1478 zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
1500 zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
3735 zval *array = EX_T(opline->op1.u.var).var.ptr; variable
3799 Z_DELREF_P(array); variable
3800 zval_ptr_dtor(&array); variable
3808 Z_DELREF_P(array); variable
3809 zval_ptr_dtor(&array); variable
3816 Z_DELREF_P(array); variable
3817 zval_ptr_dtor(&array); variable
3828 Z_DELREF_P(array); variable
3829 zval_ptr_dtor(&array); variable
[all...]
/PHP_5_3/ext/spl/
H A Dspl_fixedarray.c53 spl_fixedarray *array; member in struct:_spl_fixedarray_object
78 static void spl_fixedarray_init(spl_fixedarray *array, long size TSRMLS_DC) /* {{{ */ argument
81 array->size = 0; /* reset size in case ecalloc() fails */
82 array->elements = ecalloc(size, sizeof(zval *));
83 array->size = size;
85 array->elements = NULL;
86 array->size = 0;
91 static void spl_fixedarray_resize(spl_fixedarray *array, long size TSRMLS_DC) /* {{{ */ argument
93 if (size == array->size) {
99 if (array
642 spl_fixedarray *array; local
[all...]
H A Dspl_array.c63 zval *array; member in struct:_spl_array_object
86 } else if ((intern->ar_flags & SPL_ARRAY_USE_OTHER) && (check_std_props == 0 || (intern->ar_flags & SPL_ARRAY_STD_PROP_LIST) == 0) && Z_TYPE_P(intern->array) == IS_OBJECT) {
87 spl_array_object *other = (spl_array_object*)zend_object_store_get_object(intern->array TSRMLS_CC);
92 return HASH_OF(intern->array);
146 zval_ptr_dtor(&intern->array);
191 intern->array = other->array;
193 MAKE_STD_ZVAL(intern->array);
194 array_init(intern->array);
195 zend_hash_copy(HASH_OF(intern->array), HASH_O
1066 spl_array_set_array(zval *object, spl_array_object *intern, zval **array, long ar_flags, int just_array TSRMLS_DC) argument
1147 zval **array; local
1244 zval *object = getThis(), *tmp, **array; local
[all...]

Completed in 87 milliseconds

12