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

12

/PHP_TRUNK/sapi/phpdbg/
H A Dtest.php22 $var = $x + 1; variable
23 $var += 2;
24 $var <<= 3;
32 yield $var;
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 Dphpdbg_info.c171 zend_string *var; local
191 ZEND_HASH_FOREACH_STR_KEY_VAL(symtable, var, data) {
192 if (zend_is_auto_global(var) ^ !show_globals) {
193 zend_hash_update(&vars, var, data);
222 ZEND_HASH_FOREACH_STR_KEY_VAL(&vars, var, data) {
224 #define VARIABLEINFO(attrs, msg, ...) phpdbg_writeln("variable", "address=\"%p\" refcount=\"%d\" type=\"%s\" refstatus=\"%s\" name=\"%.*s\" " attrs, "%-18p %-7d %-9s %s$%.*s" msg, data, Z_REFCOUNT_P(data), zend_zval_type_name(data), Z_ISREF_P(data) ? "&": "", var->len, var->val, ##__VA_ARGS__)
267 phpdbg_writeln("variable", "address=\"%p\" name=\"%s\"", "%p\tn/a\tn/a\t$%s", data, 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.c1073 char* fcgi_getenv(fcgi_request *req, const char* var, int var_len) argument
1079 return zend_hash_str_find_ptr(req->env, var, var_len);
1082 char* fcgi_putenv(fcgi_request *req, char* var, int var_len, char* val) argument
1084 if (var && req) {
1086 zend_hash_str_del(req->env, var, var_len);
1089 zend_hash_str_update_ptr(req->env, var, var_len, val);
/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(), "rsz/|l", &stmt, &name, &name_len, &var, &type) == FAILURE) {
89 memmove(&define->zval, var, sizeof(zval));
90 Z_ADDREF_P(var);
96 /* {{{ proto bool oci_bind_by_name(resource stmt, string name, mixed &var, [, int maxlength [, int type]])
126 /* {{{ proto bool oci_bind_array_by_name(resource stmt, string name, array &var, int max_table_length [, int max_item_length [, int type ]])
1006 /* {{{ proto bool oci_lob_write_temporary(string var [, int lob_type])
H A Doci8_statement.c1081 int php_oci_bind_by_name(php_oci_statement *statement, char *name, int name_len, zval *var, zend_long maxlength, ub2 type) argument
1100 if (Z_TYPE_P(var) != IS_OBJECT || (tmp = zend_hash_str_find(Z_OBJPROP_P(var), "collection", sizeof("collection"))) == NULL) {
1122 if (Z_TYPE_P(var) != IS_OBJECT || (tmp = zend_hash_str_find(Z_OBJPROP_P(var), "descriptor", sizeof("descriptor"))) == NULL) {
1141 if (Z_TYPE_P(var) == IS_RESOURCE || Z_TYPE_P(var) == IS_OBJECT) {
1145 convert_to_long(var);
1146 bind_data = (ub4 *)&Z_LVAL_P(var);
1156 if (Z_TYPE_P(var)
1524 php_oci_bind_array_by_name(php_oci_statement *statement, char *name, int name_len, zval *var, zend_long max_table_length, zend_long maxlength, zend_long type) argument
1626 php_oci_bind_array_helper_string(zval *var, zend_long max_table_length, zend_long maxlength) argument
1696 php_oci_bind_array_helper_number(zval *var, zend_long max_table_length) argument
1735 php_oci_bind_array_helper_double(zval *var, zend_long max_table_length) argument
1774 php_oci_bind_array_helper_date(zval *var, zend_long max_table_length, php_oci_connection *connection) 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/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...]
/PHP_TRUNK/sapi/cgi/
H A Dfastcgi.c156 char *var; member in struct:_fcgi_hash_bucket
257 static char* fcgi_hash_set(fcgi_hash *h, unsigned int hash_value, char *var, unsigned int var_len, char *val, unsigned int val_len) argument
265 memcmp(p->var, var, var_len) == 0) {
288 p->var = fcgi_hash_strndup(h, var, var_len);
294 static void fcgi_hash_del(fcgi_hash *h, unsigned int hash_value, char *var, unsigned int var_len) argument
302 memcmp((*p)->var, var, var_len) == 0) {
313 static char *fcgi_hash_get(fcgi_hash *h, unsigned int hash_value, char *var, unsigne argument
1491 fcgi_getenv(fcgi_request *req, const char* var, int var_len) argument
1500 fcgi_quick_getenv(fcgi_request *req, const char* var, int var_len, unsigned int hash_value) argument
1507 fcgi_putenv(fcgi_request *req, char* var, int var_len, char* val) argument
1518 fcgi_quick_putenv(fcgi_request *req, char* var, int var_len, unsigned int hash_value, char* val) argument
[all...]
/PHP_TRUNK/main/
H A Dphp_variables.c40 PHPAPI void php_register_variable(char *var, char *strval, zval *track_vars_array) argument
42 php_register_variable_safe(var, strval, strlen(strval), track_vars_array);
46 PHPAPI void php_register_variable_safe(char *var, char *strval, size_t str_len, zval *track_vars_array) argument
53 php_register_variable_ex(var, &new_entry, track_vars_array);
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) argument
358 char *res = NULL, *var, *val, *separator = NULL; local
[all...]
H A Dphp_ini.c889 zval *tmp, var; local
895 ZVAL_DUP(&var, tmp);
896 convert_to_long(&var);
897 *result = Z_LVAL(var);
906 zval *tmp, var; local
912 ZVAL_DUP(&var, tmp);
913 convert_to_double(&var);
914 *result = Z_DVAL(var);
H A DSAPI.c981 SAPI_API int sapi_register_input_filter(unsigned int (*input_filter)(int arg, char *var, char **val, size_t val_len, size_t *new_val_len), unsigned int (*input_filter_init)(void)) argument
H A Drfc1867.c61 static void safe_php_register_variable(char *var, char *strval, size_t val_len, zval *track_vars_array, zend_bool override_protection);
164 static void safe_php_register_variable(char *var, char *strval, size_t val_len, zval *track_vars_array, zend_bool override_protection) /* {{{ */ argument
166 if (override_protection || !is_protected_variable(var)) {
167 php_register_variable_safe(var, strval, val_len, track_vars_array);
172 static void safe_php_register_variable_ex(char *var, zval *val, zval *track_vars_array, zend_bool override_protection) /* {{{ */ argument
174 if (override_protection || !is_protected_variable(var)) {
175 php_register_variable_ex(var, val, track_vars_array);
186 static void register_http_post_files_variable_ex(char *var, zval *val, zval *http_post_files, zend_bool override_protection) /* {{{ */ argument
188 safe_php_register_variable_ex(var, val, http_post_files, override_protection);
/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
813 XSQLVAR *var = &sqlda->sqlvar[i]; local
1505 XSQLVAR *var = &ib_result->out_sqlda->sqlvar[i]; local
1913 _php_ibase_field_info(zval *return_value, XSQLVAR *var) argument
[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(), "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);
399 zval *var, *callable_name = NULL; local
[all...]
H A Dvar.c209 /* {{{ proto void var_dump(mixed var)
371 /* {{{ proto void debug_zval_dump(mixed var)
571 /* {{{ proto mixed var_export(mixed var [, bool return])
575 zval *var; local
579 if (zend_parse_parameters(ZEND_NUM_ARGS(), "z|b", &var, &return_output) == FAILURE) {
583 php_var_export_ex(var, 1, &buf);
597 static inline zend_long php_add_var_hash(php_serialize_data_t data, zval *var) /* {{{ */ argument
601 zend_bool is_ref = Z_ISREF_P(var);
605 if (!is_ref && Z_TYPE_P(var) != IS_OBJECT) {
610 if (is_ref && Z_TYPE_P(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) argument
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);
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)
589 php_wddx_serialize_var(wddx_packet *packet, zval *var, zend_string *name) argument
1080 zval *var; local
[all...]
/PHP_TRUNK/ext/opcache/Optimizer/
H A Doptimize_temp_vars_5.c67 start_of_T[VAR_NUM(ZEND_RESULT(opline).var) - offset] = opline;
81 currT = VAR_NUM(ZEND_OP1(opline).var) - offset;
84 int var; local
86 var = max;
87 while (var >= 0 && !taken_T[var]) {
88 var--;
90 max = MAX(max, var + num);
91 var = var
[all...]
H A Dzend_optimizer.c83 opline->op1.var += sizeof(zval);
86 opline->op2.var += sizeof(zval);
89 opline->result.var += sizeof(zval);
299 uint32_t var,
306 ZEND_OP1(opline).var == var) {
366 ZEND_OP1(m).var == var) {
392 ZEND_OP2(opline).var == var) {
296 zend_optimizer_replace_by_const(zend_op_array *op_array, zend_op *opline, zend_uchar type, uint32_t var, zval *val) argument
[all...]
H A Dpass1_5.c73 uint32_t tv = ZEND_RESULT(opline).var; /* temporary variable */
107 uint32_t tv = ZEND_RESULT(opline).var; /* temporary variable */
146 uint32_t tv = ZEND_RESULT(opline).var; /* temporary variable */
181 if (ZEND_RESULT(opline).var != ZEND_RESULT(next_op).var) {
252 uint32_t tv = ZEND_RESULT(opline).var;
267 uint32_t tv = ZEND_RESULT(opline).var;
313 ZEND_RESULT((opline - 1)).var == ZEND_OP1(opline).var) {
319 uint32_t tv = ZEND_RESULT(opline).var;
652 int var = opline->result.var; local
[all...]
/PHP_TRUNK/ext/session/
H A Dsession.c1469 smart_str var = {0}; local
1471 smart_str_appends(&var, PS(session_name));
1472 smart_str_appendc(&var, '=');
1473 smart_str_appends(&var, PS(id)->val);
1474 smart_str_0(&var);
1477 ZVAL_NEW_STR(sid, var.s);
1479 REGISTER_STRINGL_CONSTANT("SID", var.s->val, var.s->len, 0);
1480 smart_str_free(&var);
2616 PS(module_number) = module_number; /* if we really need this var w
[all...]
/PHP_TRUNK/Zend/
H A Dzend_variables.c245 ZEND_API size_t zend_print_variable(zval *var) argument
247 return zend_print_zval(var, 0);
H A Dzend_generators.c63 zval *var = EX_VAR(brk_opline->op1.var); local
64 zval_ptr_dtor_nogc(var);
66 zval *var = EX_VAR(brk_opline->op1.var); local
67 if (Z_TYPE_P(var) != IS_ARRAY && Z_FE_ITER_P(var) != (uint32_t)-1) {
68 zend_hash_iterator_del(Z_FE_ITER_P(var));
70 zval_ptr_dtor_nogc(var);
177 zval *fast_call = ZEND_CALL_VAR(ex, ex->func->op_array.opcodes[finally_op_end].op1.var);
[all...]
/PHP_TRUNK/ext/filter/
H A Dfilter.c81 static unsigned int php_sapi_filter(int arg, char *var, char **val, size_t val_len, size_t *new_val_len);
414 static unsigned int php_sapi_filter(int arg, char *var, char **val, size_t val_len, size_t *new_val_len) /* {{{ */ argument
450 zend_symtable_str_exists(Z_ARRVAL_P(orig_array_ptr), var, strlen(var))) {
457 php_register_variable_ex(var, &raw_var, array_ptr);
473 php_register_variable_ex(var, &new_var, orig_array_ptr);
566 zend_string *var; local
569 if (zend_parse_parameters(ZEND_NUM_ARGS(), "lS", &arg, &var) == FAILURE) {
575 if (array_ptr && HASH_OF(array_ptr) && zend_hash_exists(HASH_OF(array_ptr), var)) {
719 zend_string *var; local
[all...]

Completed in 35 milliseconds

12