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

12

/PHP_TRUNK/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_TRUNK/sapi/phpdbg/
H A Dtest.php58 $array = [ variable
65 $array[] = 7;
67 array_walk($array, function (&$item) {
H A Dphpdbg_watch.h36 PHPDBG_WATCH(array); variable
H A Dphpdbg_webdata_transfer.c31 zval array; local
35 array_init(&array);
36 ht = Z_ARRVAL(array);
168 php_var_serialize(&buf, &array, &var_hash TSRMLS_CC);
174 zval_dtor(&array);
/PHP_TRUNK/ext/ereg/
H A Dereg.c295 *array = NULL; /* Optional register array */ local
308 if (zend_parse_parameters(argc TSRMLS_CC, "zs|z/", &regex, &findin, &findin_len, &array) == FAILURE) {
354 if (array && err != REG_NOMATCH) {
360 zval_dtor(array); /* start with clean array */
361 array_init(array);
367 add_index_stringl(array, i, string+start, end-start);
369 add_index_bool(array, i, 0);
388 /* {{{ proto int ereg(string pattern, string string [, array register
[all...]
/PHP_TRUNK/ext/interbase/
H A Dibase_query.c43 ISC_LONG ar_size; /* size of entire array in bytes */
289 * These types are mentioned as array types in the manual, but I
290 * wouldn't know how to create an array field with any of these
295 _php_ibase_module_error("Unsupported array type %d in relation '%s' column '%s'"
434 ibase_array *array, int dim TSRMLS_DC)
437 int u_bound = array->ar_desc.array_desc_bounds[dim].array_bound_upper,
438 l_bound = array->ar_desc.array_desc_bounds[dim].array_bound_lower,
443 if (dim < array->ar_desc.array_desc_dimensions) {
460 if (_php_ibase_bind_array(subval, buf, slice_size, array, dim+1 TSRMLS_CC) == FAILURE)
479 } else if (array
433 _php_ibase_bind_array(zval *val, char *buf, unsigned long buf_size, ibase_array *array, int dim TSRMLS_DC) argument
[all...]
/PHP_TRUNK/ext/mbstring/
H A Dmbstring.c811 php_mb_parse_encoding_array(zval *array, const mbfl_encoding ***return_list, size_t *return_size, int persistent TSRMLS_DC) argument
819 if (Z_TYPE_P(array) == IS_ARRAY) {
820 target_hash = Z_ARRVAL_P(array);
1909 /* {{{ proto bool|array mb_detect_order([mixed encoding-list])
1910 Sets the current detect_order or Return the current detect_order as a array */
2054 /* {{{ proto bool mb_parse_str(string encoded_string [, array result])
2070 /* Clear out the array */
3305 Returns an array of all supported entity encodings */
3321 /* {{{ proto array mb_encoding_aliases(string encoding)
3322 Returns an array o
[all...]
H A Dphp_mbregex.c690 zval *arg_pattern, *array; local
699 array = NULL;
701 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zs|z/", &arg_pattern, &string, &string_len, &array) == FAILURE) {
742 if (array != NULL) {
743 zval_dtor(array);
744 array_init(array);
751 add_index_stringl(array, i, (char *)&str[beg], end - beg);
753 add_index_bool(array, i, 0);
769 /* {{{ proto int mb_ereg(string pattern, string string [, array registers])
777 /* {{{ proto int mb_eregi(string pattern, string string [, array register
[all...]
/PHP_TRUNK/ext/oci8/
H A Doci8_interface.c126 /* {{{ proto bool oci_bind_array_by_name(resource stmt, string name, array &var, int max_table_length [, int max_item_length [, int type ]])
127 Bind a PHP array to an Oracle PL/SQL type by name */
150 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Maximum array length must be greater than zero");
1378 /* {{{ proto int ocifetchinto(resource stmt, array &output [, int mode])
1379 Fetch a row of result data into an array */
1386 /* {{{ proto int oci_fetch_all(resource stmt, array &output[, int skip[, int maxrows[, int flags]]])
1387 Fetch all rows of result data into an array */
1390 zval *z_statement, *array; local
1399 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rz/|lll", &z_statement, &array, &skip, &maxrows, &flags) == FAILURE) {
1405 zval_dtor(array);
[all...]
H A Dphp_oci8_int.h253 } array; member in struct:__anon144
/PHP_TRUNK/ext/sysvsem/
H A Dsysvsem.c50 unsigned short int *array; /* array for GETALL, SETALL */ member in union:semun
/PHP_TRUNK/main/streams/
H A Duserspace.c197 return array( just like that returned by fstat() );
229 return array( just like that returned by stat() );
827 static int statbuf_from_array(zval *array, php_stream_statbuf *ssb TSRMLS_DC) argument
832 if (NULL != (elem = zend_hash_str_find(Z_ARRVAL_P(array), #name, sizeof(#name)-1))) { \
/PHP_TRUNK/ext/spl/
H A Dspl_array.c66 zval array; member in struct:_spl_array_object
96 } else if ((intern->ar_flags & SPL_ARRAY_USE_OTHER) && (check_std_props == 0 || (intern->ar_flags & SPL_ARRAY_STD_PROP_LIST) == 0) && Z_TYPE(intern->array) == IS_OBJECT) {
97 spl_array_object *other = Z_SPLARRAY_P(&intern->array);
105 return HASH_OF(&intern->array);
165 zval_ptr_dtor(&intern->array);
199 intern->array = other->array;
201 ZVAL_NEW_ARR(&intern->array);
202 zend_array_dup(Z_ARRVAL(intern->array), HASH_OF(&other->array));
1144 spl_array_set_array(zval *object, spl_array_object *intern, zval *array, zend_long ar_flags, int just_array TSRMLS_DC) argument
1225 zval *array; local
1329 zval *object = getThis(), *array; local
[all...]
H A Dspl_fixedarray.c52 spl_fixedarray *array; member in struct:_spl_fixedarray_object
84 static void spl_fixedarray_init(spl_fixedarray *array, zend_long size TSRMLS_DC) /* {{{ */ argument
87 array->size = 0; /* reset size in case ecalloc() fails */
88 array->elements = ecalloc(size, sizeof(zval));
89 array->size = size;
91 array->elements = NULL;
92 array->size = 0;
97 static void spl_fixedarray_resize(spl_fixedarray *array, zend_long size TSRMLS_DC) /* {{{ */ argument
99 if (size == array->size) {
105 if (array
672 spl_fixedarray *array; local
[all...]
/PHP_TRUNK/main/
H A Dphp_variables.c360 zval array; local
365 ZVAL_UNDEF(&array);
370 array_init(&array);
374 ZVAL_COPY_VALUE(&PG(http_globals)[TRACK_VARS_POST], &array);
378 ZVAL_COPY_VALUE(&PG(http_globals)[TRACK_VARS_GET], &array);
382 ZVAL_COPY_VALUE(&PG(http_globals)[TRACK_VARS_COOKIE], &array);
387 ZVAL_COPY_VALUE(&array, destArray);
392 sapi_handle_post(&array TSRMLS_CC);
460 php_register_variable_safe(var, val, new_val_len, &array TSRMLS_CC);
471 php_register_variable_safe(var, val, new_val_len, &array TSRMLS_C
[all...]
H A Doutput.c1160 zval *array = (zval *) z; local
1162 add_next_index_str(array, zend_string_copy(handler->name));
1172 zval arr, *array = (zval *) z; local
1174 add_next_index_zval(array, php_output_handler_status(handler, &arr));
1180 * Returns an array with the status of the output handler */
1301 /* {{{ proto bool ob_start([string|array user_function [, int chunk_size [, int flags]]])
1483 /* {{{ proto false|array ob_list_handlers()
1484 List all output_buffers in an array */
1501 /* {{{ proto false|array ob_get_status([bool full_status])
/PHP_TRUNK/ext/com_dotnet/
H A Dcom_misc.c97 * element from a (possibly multi-dimensional) safe array */
98 PHP_COM_DOTNET_API int php_com_safearray_get_elem(VARIANT *array, VARIANT *dest, LONG dim1 TSRMLS_DC) argument
105 if (!V_ISARRAY(array)) {
109 dims = SafeArrayGetDim(V_ARRAY(array));
113 "Can only handle single dimension variant arrays (this array has %d)", dims);
117 if (FAILED(SafeArrayGetVartype(V_ARRAY(array), &vt)) || vt == VT_EMPTY) {
118 vt = V_VT(array) & ~VT_ARRAY;
122 SafeArrayGetLBound(V_ARRAY(array), 1, &lbound);
123 SafeArrayGetUBound(V_ARRAY(array), 1, &ubound);
137 SafeArrayGetElement(V_ARRAY(array), indice
[all...]
/PHP_TRUNK/ext/session/
H A Dsession.c185 /* Unconditionally destroy existing array -- possible dirty data */
292 zval *array; local
299 if ((array = zend_hash_str_find(&EG(symbol_table).ht, "_SERVER", sizeof("_SERVER") - 1)) &&
300 Z_TYPE_P(array) == IS_ARRAY &&
301 (token = zend_hash_str_find(Z_ARRVAL_P(array), "REMOTE_ADDR", sizeof("REMOTE_ADDR") - 1)) &&
1666 /* {{{ proto array session_get_cookie_params(void)
2705 /* Each uploaded file has its own array. Trying to make it close to $_FILES entries. */
/PHP_TRUNK/ext/intl/collator/
H A Dcollator_sort.c291 zval* array = NULL; local
299 &object, Collator_ce_ptr, &array, &sort_flags ) == FAILURE )
313 hash = HASH_OF( array );
315 /* Convert strings in the specified array from UTF-8 to UTF-16. */
323 /* Sort specified array. */
329 /* Convert strings in the specified array back to UTF-8. */
337 /* {{{ proto bool Collator::sort( Collator $coll, array(string) $arr [, int $sort_flags] )
338 * Sort array using specified collator. }}} */
339 /* {{{ proto bool collator_sort( Collator $coll, array(string) $arr [, int $sort_flags] )
340 * Sort array usin
357 zval* array = NULL; local
[all...]
/PHP_TRUNK/ext/standard/
H A Dexec.c56 * If type==2, all lines will be saved to given array (exec with &$array)
60 PHPAPI int php_exec(int type, char *cmd, zval *array, zval *return_value TSRMLS_DC) argument
124 add_next_index_stringl(array, buf, bufl);
138 add_next_index_stringl(array, buf, bufl);
209 /* {{{ proto string exec(string command [, array &output [, int &return_value]])
H A Dformatted_print.c412 zval *array; local
415 array = &args[1 + format_offset];
416 if (Z_TYPE_P(array) != IS_ARRAY) {
417 SEPARATE_ZVAL(array);
418 convert_to_array(array);
421 argc = 1 + zend_hash_num_elements(Z_ARRVAL_P(array));
425 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(array), zv) {
680 /* {{{ proto string vsprintf(string format, array args)
709 /* {{{ proto int vprintf(string format, array args)
754 /* {{{ proto int vfprintf(resource stream, string format, array arg
[all...]
H A Dphp_array.h27 PHP_MINIT_FUNCTION(array); variable
28 PHP_MSHUTDOWN_FUNCTION(array); variable
111 PHPAPI zend_long php_count_recursive(zval *array, zend_long mode TSRMLS_DC);
128 ZEND_BEGIN_MODULE_GLOBALS(array)
131 ZEND_END_MODULE_GLOBALS(array)
/PHP_TRUNK/Zend/
H A Dzend_builtin_functions.c458 /* {{{ proto array func_get_args()
459 Get an array of the arguments that were passed to the function */
610 /* {{{ proto array each(array arr)
611 Return the currently pointed key..value pair in the passed array, and advance the pointer to the next element */
614 zval *array, *entry, tmp; local
619 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z/", &array) == FAILURE) {
623 target_hash = HASH_OF(array);
625 zend_error(E_WARNING,"Variable passed to each() is not an array or object");
973 /* this is necessary to make it able to work with default array
1661 zval *array = va_arg(args, zval *); local
2538 int array; local
[all...]
H A Dzend_vm_def.h422 zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
1269 zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
1291 zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
1332 zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
1363 zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
1658 zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
1684 zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
2567 zend_error_noreturn(E_ERROR, "First array member is not a valid class name or object");
2572 zend_error_noreturn(E_ERROR, "Second array member is not a valid method");
3316 zend_error(E_RECOVERABLE_ERROR, "Cannot unpack array wit
4126 zval *array; variable
4130 array = EX_VAR(opline->result.var); variable
4136 ZVAL_NEW_ARR(array); variable
4782 zval *array, *array_ref; variable
4794 zval_copy_ctor_func(array); variable
[all...]
/PHP_TRUNK/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);
1248 /* Convert into array */
1278 /* Convert into array */
1287 /* Add array element */
1292 /* Convert into array */
1346 zval array; local
1348 array_init(&array);
1349 add_next_index_zval(&array, &val);
1369 add_next_index_zval(&array,
1375 zval array; local
3484 is_map(zval *array) argument
3499 get_array_type(xmlNodePtr node, zval *array, smart_str *type TSRMLS_DC) argument
[all...]

Completed in 117 milliseconds

12