Searched defs:array (Results 1 - 25 of 34) 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.h35 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);
174 zval_dtor(&array);
/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) 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/standard/
H A Dphp_array.h27 PHP_MINIT_FUNCTION(array); variable
28 PHP_MSHUTDOWN_FUNCTION(array); variable
110 PHPAPI zend_long php_count_recursive(zval *array, zend_long mode);
127 ZEND_BEGIN_MODULE_GLOBALS(array)
130 ZEND_END_MODULE_GLOBALS(array)
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) argument
124 add_next_index_stringl(array, buf, bufl);
138 add_next_index_stringl(array, buf, bufl);
213 /* {{{ proto string exec(string command [, array &output [, int &return_value]])
H A Dformatted_print.c418 zval *array; local
421 array = &args[1 + format_offset];
422 if (Z_TYPE_P(array) != IS_ARRAY) {
423 SEPARATE_ZVAL(array);
424 convert_to_array(array);
427 argc = 1 + zend_hash_num_elements(Z_ARRVAL_P(array));
431 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(array), zv) {
686 /* {{{ proto string vsprintf(string format, array args)
715 /* {{{ proto int vprintf(string format, array args)
760 /* {{{ proto int vfprintf(resource stream, string format, array arg
[all...]
/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
366 zval* array = NULL; local
[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)
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) == FAILURE)
479 } else if (array
433 _php_ibase_bind_array(zval *val, char *buf, unsigned long buf_size, ibase_array *array, int dim) argument
[all...]
/PHP_TRUNK/ext/sysvsem/
H A Dsysvsem.c50 unsigned short int *array; /* array for GETALL, SETALL */ member in union:semun
/PHP_TRUNK/Zend/
H A Dzend_generators.h44 union { /* HashTable / hard coded array for faster access */
49 } array[4]; /* if <= 4 children */ member in union:_zend_generator_node::__anon1
H A Dzend_generators.c317 return node->child.array[0].child;
320 if (node->child.array[x].leaf == leaf) { \
321 return node->child.array[x].child; \
339 node = &node->child.array[0].child->node;
347 node->child.array[node->children].leaf = leaf;
348 node->child.array[node->children].child = child;
355 } array[4]; local
358 memcpy(&array, &node->child.array, sizeof(array));
[all...]
H A Dzend_builtin_functions.c467 /* {{{ proto array func_get_args()
468 Get an array of the arguments that were passed to the function */
603 /* {{{ proto mixed each(array &arr)
604 Return the currently pointed key..value pair in the passed array, and advance the pointer to the next element, or false if there is no element at this place */
607 zval *array, *entry, tmp; local
612 if (zend_parse_parameters(ZEND_NUM_ARGS(), "z/", &array) == FAILURE) {
616 target_hash = HASH_OF(array);
618 zend_error(E_WARNING,"Variable passed to each() is not an array or object");
1080 /* this is necessary to make it able to work with default array
1093 /* {{{ proto array get_class_var
1803 zval *array = va_arg(args, zval *); local
2682 int array; local
[all...]
/PHP_TRUNK/ext/spl/
H A Dspl_fixedarray.c52 spl_fixedarray *array; member in struct:_spl_fixedarray_object
83 static void spl_fixedarray_init(spl_fixedarray *array, zend_long size) /* {{{ */ argument
86 array->size = 0; /* reset size in case ecalloc() fails */
87 array->elements = ecalloc(size, sizeof(zval));
88 array->size = size;
90 array->elements = NULL;
91 array->size = 0;
96 static void spl_fixedarray_resize(spl_fixedarray *array, zend_long size) /* {{{ */ argument
98 if (size == array->size) {
104 if (array
666 spl_fixedarray *array; local
[all...]
/PHP_TRUNK/main/
H A Dfastcgi.c1699 void fcgi_loadenv(fcgi_request *req, fcgi_apply_func func, zval *array) argument
1701 fcgi_hash_apply(&req->env, func, array);
H A Doutput.c1154 zval *array = (zval *) z; local
1156 add_next_index_str(array, zend_string_copy(handler->name));
1166 zval arr, *array = (zval *) z; local
1168 add_next_index_zval(array, php_output_handler_status(handler, &arr));
1174 * Returns an array with the status of the output handler */
1295 /* {{{ proto bool ob_start([string|array user_function [, int chunk_size [, int flags]]])
1477 /* {{{ proto false|array ob_list_handlers()
1478 List all output_buffers in an array */
1495 /* {{{ proto false|array ob_get_status([bool full_status])
H A Dphp_variables.c365 zval array; local
370 ZVAL_UNDEF(&array);
375 array_init(&array);
379 ZVAL_COPY_VALUE(&PG(http_globals)[TRACK_VARS_POST], &array);
383 ZVAL_COPY_VALUE(&PG(http_globals)[TRACK_VARS_GET], &array);
387 ZVAL_COPY_VALUE(&PG(http_globals)[TRACK_VARS_COOKIE], &array);
392 ZVAL_COPY_VALUE(&array, destArray);
397 sapi_handle_post(&array);
465 php_register_variable_safe(var, val, new_val_len, &array);
476 php_register_variable_safe(var, val, new_val_len, &array);
[all...]
/PHP_TRUNK/ext/oci8/
H A Dphp_oci8_int.h253 } array; member in struct:__anon8
H A Doci8_interface.c130 /* {{{ proto bool oci_bind_array_by_name(resource stmt, string name, array &var, int max_table_length [, int max_item_length [, int type ]])
131 Bind a PHP array to an Oracle PL/SQL type by name */
154 php_error_docref(NULL, 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; local
1403 if (zend_parse_parameters(ZEND_NUM_ARGS(), "rz/|lll", &z_statement, &array, &skip, &maxrows, &flags) == FAILURE) {
1409 zval_dtor(array);
[all...]
/PHP_TRUNK/ext/json/
H A Djson_parser.tab.c223 void php_json_parser_array_append(zval *array, zval *zvalue);
405 /* The size of an array large to enough to hold all stacks, each with
549 "array", "$@2", "array_end", "elements", "element", "key", "value",
1241 case 26: /* array */
2000 void php_json_parser_array_init(zval *array) argument
2002 array_init(array);
2005 void php_json_parser_array_append(zval *array, zval *zvalue) argument
2007 zend_hash_next_index_insert(Z_ARRVAL_P(array), zvalue);
H A Djson_parser.y65 %type <value> start object key value array errlex
78 void php_json_parser_array_append(zval *array, zval *zvalue);
160 array: label
209 | array
282 void php_json_parser_array_init(zval *array)
284 array_init(array);
287 void php_json_parser_array_append(zval *array, zval *zvalue)
289 zend_hash_next_index_insert(Z_ARRVAL_P(array), zvalue);
/PHP_TRUNK/ext/mbstring/
H A Dphp_mbregex.c690 zval *arg_pattern, *array; local
699 array = NULL;
701 if (zend_parse_parameters(ZEND_NUM_ARGS(), "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/session/
H A Dsession.c200 /* Unconditionally destroy existing array -- possible dirty data */
309 zval *array; local
316 if ((array = zend_hash_str_find(&EG(symbol_table), "_SERVER", sizeof("_SERVER") - 1)) &&
317 Z_TYPE_P(array) == IS_ARRAY &&
318 (token = zend_hash_str_find(Z_ARRVAL_P(array), "REMOTE_ADDR", sizeof("REMOTE_ADDR") - 1)) &&
1719 /* {{{ proto array session_get_cookie_params(void)
2191 /* {{{ proto bool session_start([array options])
2926 /* Each uploaded file has its own array. Trying to make it close to $_FILES entries. */
/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() );
837 static int statbuf_from_array(zval *array, php_stream_statbuf *ssb) argument
842 if (NULL != (elem = zend_hash_str_find(Z_ARRVAL_P(array), #name, sizeof(#name)-1))) { \

Completed in 61 milliseconds

12