Searched defs:array (Results 1 - 25 of 32) 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/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.c458 /* {{{ proto array func_get_args()
459 Get an array of the arguments that were passed to the function */
614 /* {{{ proto array each(array arr)
615 Return the currently pointed key..value pair in the passed array, and advance the pointer to the next element */
618 zval *array, *entry, tmp; local
623 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z/", &array) == FAILURE) {
627 target_hash = HASH_OF(array);
629 zend_error(E_WARNING,"Variable passed to each() is not an array or object");
994 /* this is necessary to make it able to work with default array
1696 zval *array = va_arg(args, zval *); local
2597 int extension_name_len, array; local
[all...]
H A Dzend_vm_def.h434 zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
1283 zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
1309 zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
1347 zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
1378 zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
1596 zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
1617 zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
2458 zend_error_noreturn(E_ERROR, "First array member is not a valid class name or object");
2463 zend_error_noreturn(E_ERROR, "Second array member is not a valid method");
3204 zend_error(E_RECOVERABLE_ERROR, "Cannot unpack array wit
3992 zval *array; variable
3996 array = EX_VAR(opline->result.var); variable
4002 ZVAL_NEW_ARR(array); variable
4647 zval *array, *array_ref; variable
4658 zval_copy_ctor(array); variable
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_watch.h36 PHPDBG_WATCH(array); variable
45 PHPDBG_COMMAND_D_EX(array, "create watchpoint on an array", 'a', watch_array, NULL, "s"),
H A Dtest.php58 $array = [ variable
65 $array[] = 7;
67 array_walk($array, function (&$item) {
/PHP_TRUNK/ext/oci8/
H A Dphp_oci8_int.h253 } array; member in struct:__anon111
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");
1377 /* {{{ proto int ocifetchinto(resource stmt, array &output [, int mode])
1378 Fetch a row of result data into an array */
1385 /* {{{ proto int oci_fetch_all(resource stmt, array &output[, int skip[, int maxrows[, int flags]]])
1386 Fetch all rows of result data into an array */
1389 zval *z_statement, *array, *element, *tmp; local
1397 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rz/|lll", &z_statement, &array, &skip, &maxrows, &flags) == FAILURE) {
1403 zval_dtor(array);
[all...]
/PHP_TRUNK/ext/com_dotnet/
H A Dcom_misc.c93 * element from a (possibly multi-dimensional) safe array */
94 PHP_COM_DOTNET_API int php_com_safearray_get_elem(VARIANT *array, VARIANT *dest, LONG dim1 TSRMLS_DC) argument
101 if (!V_ISARRAY(array)) {
105 dims = SafeArrayGetDim(V_ARRAY(array));
109 "Can only handle single dimension variant arrays (this array has %d)", dims);
113 if (FAILED(SafeArrayGetVartype(V_ARRAY(array), &vt)) || vt == VT_EMPTY) {
114 vt = V_VT(array) & ~VT_ARRAY;
118 SafeArrayGetLBound(V_ARRAY(array), 1, &lbound);
119 SafeArrayGetUBound(V_ARRAY(array), 1, &ubound);
133 SafeArrayGetElement(V_ARRAY(array), indice
[all...]
/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/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/mbstring/
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/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)) &&
1686 /* {{{ proto array session_get_cookie_params(void)
2739 /* Each uploaded file has its own array. Trying to make it close to $_FILES entries. */
/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);
1256 /* Convert into array */
1286 /* Convert into array */
1295 /* Add array element */
1300 /* Convert into array */
1354 zval array; local
1356 array_init(&array);
1357 add_next_index_zval(&array, &val);
1377 add_next_index_zval(&array,
1383 zval array; local
3499 is_map(zval *array) argument
3514 get_array_type(xmlNodePtr node, zval *array, smart_str *type TSRMLS_DC) argument
[all...]
/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, php_int_t 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, php_int_t 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, php_int_t size TSRMLS_DC) /* {{{ */ argument
99 if (size == array->size) {
105 if (array
672 spl_fixedarray *array; 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
123 add_next_index_stringl(array, buf, bufl);
137 add_next_index_stringl(array, buf, bufl);
208 /* {{{ proto string exec(string command [, array &output [, int &return_value]])
H A Dformatted_print.c395 zval *array; local
398 array = &args[1 + format_offset];
399 if (Z_TYPE_P(array) != IS_ARRAY) {
400 SEPARATE_ZVAL(array);
401 convert_to_array(array);
404 argc = 1 + zend_hash_num_elements(Z_ARRVAL_P(array));
408 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(array), zv) {
663 /* {{{ proto string vsprintf(string format, array args)
692 /* {{{ proto int vprintf(string format, array args)
737 /* {{{ 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
110 PHPAPI php_int_t php_count_recursive(zval *array, php_int_t mode TSRMLS_DC);
127 ZEND_BEGIN_MODULE_GLOBALS(array)
130 ZEND_END_MODULE_GLOBALS(array)
/PHP_TRUNK/ext/sysvsem/
H A Dsysvsem.c50 unsigned short int *array; /* array for GETALL, SETALL */ member in union:semun
/PHP_TRUNK/main/
H A Doutput.c1173 zval *array = (zval *) z; local
1175 add_next_index_str(array, STR_COPY(handler->name));
1185 zval arr, *array = (zval *) z; local
1187 add_next_index_zval(array, php_output_handler_status(handler, &arr));
1193 * Returns an array with the status of the output handler */
1314 /* {{{ proto bool ob_start([string|array user_function [, int chunk_size [, int flags]]])
1496 /* {{{ proto false|array ob_list_handlers()
1497 List all output_buffers in an array */
1514 /* {{{ proto false|array ob_get_status([bool full_status])
H A Dphp_variables.c358 zval array; local
363 ZVAL_UNDEF(&array);
368 array_init(&array);
372 ZVAL_COPY_VALUE(&PG(http_globals)[TRACK_VARS_POST], &array);
376 ZVAL_COPY_VALUE(&PG(http_globals)[TRACK_VARS_GET], &array);
380 ZVAL_COPY_VALUE(&PG(http_globals)[TRACK_VARS_COOKIE], &array);
385 ZVAL_COPY_VALUE(&array, destArray);
390 sapi_handle_post(&array TSRMLS_CC);
458 php_register_variable_safe(var, val, new_val_len, &array TSRMLS_CC);
469 php_register_variable_safe(var, val, new_val_len, &array TSRMLS_C
[all...]
/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))) { \

Completed in 88 milliseconds

12