Searched defs:var (Results 1 - 25 of 40) sorted by relevance

12

/PHP_TRUNK/sapi/isapi/stresstest/
H A Dstresstest.cpp919 char *var, dummy; local
930 var = (char *)xmalloc(dwLen);
931 if (!var)
933 (void)GetEnvironmentVariable(lpszEnvVar, var, dwLen);
935 return var;
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_env.c48 char *var = alloca(name_len + 1 + value_len + 1); local
50 memcpy(var, name, name_len);
52 var[name_len] = '=';
54 memcpy(var + name_len + 1, value, value_len);
56 var[name_len + 1 + value_len] = '\0';
58 return putenv(var);
H A Dfastcgi.c1041 char* fcgi_getenv(fcgi_request *req, const char* var, int var_len) argument
1047 return zend_hash_str_find_ptr(req->env, var, var_len);
1050 char* fcgi_putenv(fcgi_request *req, char* var, int var_len, char* val) argument
1052 if (var && req) {
1054 zend_hash_str_del(req->env, var, var_len);
1057 zend_hash_str_update_ptr(req->env, var, var_len, val);
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_info.c93 char *var; local
113 while (zend_hash_get_current_key_ex(EG(active_symbol_table), &var,
116 if (*var != '_') {
118 &vars, var, strlen(var)+1, (void**)data, sizeof(zval*), NULL);
150 char *var; local
152 zend_hash_get_current_key_ex(&vars, &var, NULL, NULL, 0, &pos);
174 "%s$%s", Z_ISREF_PP(data) ? "&": "", var);
186 "%s$%s", Z_ISREF_PP(data) ? "&": "", var);
192 "%s$%s", Z_ISREF_PP(data) ? "&": "", var);
[all...]
H A Dphpdbg_win.c25 int var; local
26 return (int)VirtualProtect(addr, size, protection == (PROT_READ | PROT_WRITE) ? PAGE_READWRITE : PAGE_READONLY, &var);
H A Dtest.php22 $var = $x + 1; variable
23 $var += 2;
24 $var <<= 3;
32 yield $var;
/PHP_TRUNK/Zend/
H A Dzend_execute.h303 ZEND_API zval* zend_get_compiled_variable_value(const zend_execute_data *execute_data_ptr, zend_uint var);
318 zval *var; member in struct:_zend_free_op
H A Dzend_generators.c63 zval *var = EX_VAR_2(execute_data, brk_opline->op1.var); local
64 zval_ptr_dtor(var);
69 zval *var = EX_VAR_2(execute_data, brk_opline->op1.var); local
70 zval_dtor(var);
213 static int copy_closure_static_var(zval *var TSRMLS_DC, int num_args, va_list args, zend_hash_key *key) /* {{{ */
217 ZVAL_MAKE_REF(var);
218 Z_ADDREF_P(var);
219 zend_hash_update(target, key->key, var);
[all...]
/PHP_TRUNK/ext/filter/
H A Dfilter.c80 static unsigned int php_sapi_filter(int arg, char *var, char **val, unsigned int val_len, unsigned int *new_val_len TSRMLS_DC);
405 static unsigned int php_sapi_filter(int arg, char *var, char **val, unsigned int val_len, unsigned int *new_val_len TSRMLS_DC) /* {{{ */ argument
441 zend_symtable_str_exists(Z_ARRVAL_P(orig_array_ptr), var, strlen(var))) {
448 php_register_variable_ex(var, &raw_var, array_ptr TSRMLS_CC);
464 php_register_variable_ex(var, &new_var, orig_array_ptr TSRMLS_CC);
560 zend_string *var; local
563 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lS", &arg, &var) == FAILURE) {
569 if (array_ptr && HASH_OF(array_ptr) && zend_hash_exists(HASH_OF(array_ptr), var)) {
716 zend_string *var; local
[all...]
/PHP_TRUNK/ext/interbase/
H A Dibase_query.c102 XSQLVAR *var; local
107 var = sqlda->sqlvar;
108 for (i = 0; i < sqlda->sqld; i++, var++) {
109 efree(var->sqldata);
110 if (var->sqlind) {
111 efree(var->sqlind);
223 XSQLVAR *var = &sqlda->sqlvar[i]; local
225 if ((var->sqltype & ~1) == SQL_ARRAY) {
229 if (isc_array_lookup_bounds(IB_STATUS, &link, &trans, var->relname,
230 var
645 XSQLVAR *var = &sqlda->sqlvar[i]; local
814 XSQLVAR *var = &sqlda->sqlvar[i]; local
1506 XSQLVAR *var = &ib_result->out_sqlda->sqlvar[i]; local
1914 _php_ibase_field_info(zval *return_value, XSQLVAR *var) argument
[all...]
/PHP_TRUNK/ext/mssql/
H A Dphp_mssql.c126 ZEND_ARG_INFO(1, var)
2009 /* {{{ proto bool mssql_bind(resource stmt, string param_name, mixed var, int type [, bool is_output [, bool is_null [, int maxlen]]])
2017 zval *stmt, **var; local
2024 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rsZl|bbl", &stmt, &param_name, &param_name_len, &var, &type, &is_output, &is_null, &maxlen) == FAILURE) {
2045 convert_to_string_ex(var);
2046 datalen=Z_STRLEN_PP(var);
2047 value=(LPBYTE)Z_STRVAL_PP(var);
2062 convert_to_double_ex(var);
2063 value=(LPBYTE)(&Z_DVAL_PP(var));
2070 convert_to_long_ex(var);
[all...]
/PHP_TRUNK/ext/oci8/
H A Doci8_interface.c47 /* {{{ proto bool oci_define_by_name(resource stmt, string name, mixed &var [, int type])
52 zval *stmt, *var; local
59 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rsz/|l", &stmt, &name, &name_len, &var, &type) == FAILURE) {
88 define->zval = var;
89 zval_add_ref(&var);
95 /* {{{ proto bool oci_bind_by_name(resource stmt, string name, mixed &var, [, int maxlength [, int type]])
125 /* {{{ proto bool oci_bind_array_by_name(resource stmt, string name, array &var, int max_table_length [, int max_item_length [, int type ]])
1005 /* {{{ proto bool oci_lob_write_temporary(string var [, int lob_type])
H A Doci8_statement.c1082 int php_oci_bind_by_name(php_oci_statement *statement, char *name, int name_len, zval *var, long maxlength, ub2 type TSRMLS_DC) argument
1101 if (Z_TYPE_P(var) != IS_OBJECT || zend_hash_find(Z_OBJPROP_P(var), "collection", sizeof("collection"), (void **)&tmp) == FAILURE) {
1123 if (Z_TYPE_P(var) != IS_OBJECT || zend_hash_find(Z_OBJPROP_P(var), "descriptor", sizeof("descriptor"), (void **)&tmp) == FAILURE) {
1142 if (Z_TYPE_P(var) == IS_RESOURCE || Z_TYPE_P(var) == IS_OBJECT) {
1146 convert_to_long(var);
1147 bind_data = (ub4 *)&Z_LVAL_P(var);
1157 if (Z_TYPE_P(var)
1527 php_oci_bind_array_by_name(php_oci_statement *statement, char *name, int name_len, zval *var, long max_table_length, long maxlength, long type TSRMLS_DC) argument
1629 php_oci_bind_array_helper_string(zval *var, long max_table_length, long maxlength TSRMLS_DC) argument
1699 php_oci_bind_array_helper_number(zval *var, long max_table_length TSRMLS_DC) argument
1738 php_oci_bind_array_helper_double(zval *var, long max_table_length TSRMLS_DC) argument
1777 php_oci_bind_array_helper_date(zval *var, long max_table_length, php_oci_connection *connection TSRMLS_DC) argument
[all...]
/PHP_TRUNK/ext/pdo_firebird/
H A Dfirebird_statement.c41 XSQLVAR const *var = &sqlda->sqlvar[i]; local
43 if (var->sqlind) {
44 efree(var->sqlind);
187 XSQLVAR *var = &S->out_sqlda.sqlvar[colno]; local
192 var->sqlind = (void*)ecalloc(1, var->sqllen + 2*sizeof(short));
193 var->sqldata = &((char*)var->sqlind)[sizeof(short)];
195 colname_len = (S->H->fetch_table_names && var->relname_length)
196 ? (var
302 XSQLVAR const *var = &S->out_sqlda.sqlvar[colno]; local
454 XSQLVAR *var; local
476 XSQLVAR *var = &sqlda->sqlvar[i]; local
[all...]
/PHP_TRUNK/ext/standard/
H A Dtype.c24 /* {{{ proto string gettype(mixed var)
91 /* {{{ proto bool settype(mixed var, string type)
95 zval *var; local
99 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zs", &var, &type, &type_len) == FAILURE) {
103 ZVAL_DEREF(var);
104 SEPARATE_ZVAL_NOREF(var);
106 convert_to_long(var);
108 convert_to_long(var);
110 convert_to_double(var);
112 convert_to_double(var);
383 zval *var, *callable_name = NULL; local
[all...]
H A Dvar.c212 /* {{{ proto void var_dump(mixed var)
374 /* {{{ proto void debug_zval_dump(mixed var)
578 /* {{{ proto mixed var_export(mixed var [, bool return])
582 zval *var; local
586 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z|b", &var, &return_output) == FAILURE) {
590 php_var_export_ex(var, 1, &buf TSRMLS_CC);
609 zval *var = var_ptr; local
611 if (Z_ISREF_P(var)) {
612 var = Z_REFVAL_P(var);
[all...]
/PHP_TRUNK/ext/wddx/
H A Dwddx.c58 #define EL_VAR "var"
107 ZEND_ARG_INFO(0, var)
388 static void php_wddx_serialize_string(wddx_packet *packet, zval *var TSRMLS_DC)
392 if (Z_STRLEN_P(var) > 0) {
395 buf = php_escape_html_entities(Z_STRVAL_P(var), Z_STRLEN_P(var), 0, ENT_QUOTES, NULL TSRMLS_CC);
407 static void php_wddx_serialize_number(wddx_packet *packet, zval *var) argument
412 ZVAL_DUP(&tmp, var);
423 static void php_wddx_serialize_boolean(wddx_packet *packet, zval *var) argument
425 php_wddx_add_chunk(packet, Z_TYPE_P(var)
590 php_wddx_serialize_var(wddx_packet *packet, zval *var, zend_string *name TSRMLS_DC) argument
1084 zval *var; local
[all...]
/PHP_TRUNK/main/
H A DSAPI.c987 SAPI_API int sapi_register_input_filter(unsigned int (*input_filter)(int arg, char *var, char **val, unsigned int val_len, unsigned int *new_val_len TSRMLS_DC), unsigned int (*input_filter_init)(TSRMLS_D) TSRMLS_DC) argument
H A Dphp_ini.c880 zval *tmp, var; local
886 ZVAL_DUP(&var, tmp);
887 convert_to_long(&var);
888 *result = Z_LVAL(var);
897 zval *tmp, var; local
903 ZVAL_DUP(&var, tmp);
904 convert_to_double(&var);
905 *result = Z_DVAL(var);
H A Dphp_variables.c40 PHPAPI void php_register_variable(char *var, char *strval, zval *track_vars_array TSRMLS_DC) argument
42 php_register_variable_safe(var, strval, strlen(strval), track_vars_array TSRMLS_CC);
46 PHPAPI void php_register_variable_safe(char *var, char *strval, int str_len, zval *track_vars_array TSRMLS_DC) argument
53 php_register_variable_ex(var, &new_entry, track_vars_array TSRMLS_CC);
61 char *var, *var_orig; local
90 var = var_orig = do_alloca(var_len + 1, use_heap);
94 for (p = var; *p; p++) {
104 var_len = p - var;
115 !memcmp(var, "GLOBALS", sizeof("GLOBALS")-1)) {
121 index = var;
244 add_post_var(zval *arr, post_var_data_t *var, zend_bool eof TSRMLS_DC) argument
356 char *res = NULL, *var, *val, *separator = NULL; local
[all...]
/PHP_TRUNK/sapi/apache/
H A Dphp_apache.c440 char *var = NULL, *val = NULL; local
443 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|b", &var, &var_len, &val, &val_len, &top) == FAILURE) {
452 ap_table_setn(r->subprocess_env, ap_pstrndup(r->pool, var, var_len), ap_pstrndup(r->pool, val, val_len));
/PHP_TRUNK/sapi/apache_hooks/
H A Dphp_apache.c1811 char *var = NULL, *val = NULL; local
1814 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|b", &var, &var_len, &val, &val_len, &top) == FAILURE) {
1825 ap_table_setn(r->subprocess_env, ap_pstrndup(r->pool, var, var_len), ap_pstrndup(r->pool, val, val_len));
/PHP_TRUNK/ext/opcache/Optimizer/
H A Dpass1_5.c63 zend_uint tv = ZEND_RESULT(opline).var; /* temporary variable */
95 zend_uint tv = ZEND_RESULT(opline).var; /* temporary variable */
138 zend_uint tv = ZEND_RESULT(opline).var; /* temporary variable */
171 if (ZEND_RESULT(opline).var != ZEND_RESULT(next_op).var) {
241 zend_uint tv = ZEND_RESULT(opline).var;
255 zend_uint tv = ZEND_RESULT(opline).var;
297 ZEND_RESULT((opline - 1)).var == ZEND_OP1(opline).var) {
303 zend_uint tv = ZEND_RESULT(opline).var;
541 int var = opline->result.var; variable
[all...]
H A Dzend_optimizer.c86 opline->op1.var += sizeof(zval);
89 opline->op2.var += sizeof(zval);
92 opline->result.var += sizeof(zval);
293 zend_uint var,
300 ZEND_OP1(opline).var == var) {
329 ZEND_OP2(opline).var == var) {
347 zend_uint var,
355 ZEND_OP1(opline).var
291 replace_var_by_const(zend_op_array *op_array, zend_op *opline, zend_uint var, zval *val TSRMLS_DC) argument
345 replace_tmp_by_const(zend_op_array *op_array, zend_op *opline, zend_uint var, zval *val TSRMLS_DC) argument
[all...]
/PHP_TRUNK/ext/mbstring/
H A Dmb_gpc.c195 char *var, *val; local
233 var = php_strtok_r(res, info->separator, &strtok_buf);
234 while (var) {
235 val = strchr(var, '=');
237 len_list[n] = php_url_decode(var, val-var);
238 val_list[n] = var;
245 len_list[n] = php_url_decode(var, strlen(var));
246 val_list[n] = var;
[all...]

Completed in 64 milliseconds

12