Searched defs:var (Results 1 - 25 of 41) 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/phpdbg/
H A Dtest.php17 $var = $x + 1; variable
18 $var += 2;
19 $var <<= 3;
27 yield $var;
H A Dphpdbg_info.c77 char *var; local
97 while (zend_hash_get_current_key_ex(EG(active_symbol_table), &var,
100 if (*var != '_') {
102 &vars, var, strlen(var)+1, (void**)data, sizeof(zval*), NULL);
134 char *var; local
136 zend_hash_get_current_key_ex(&vars, &var, NULL, NULL, 0, &pos);
158 "%s$%s", Z_ISREF_PP(data) ? "&": "", var);
170 "%s$%s", Z_ISREF_PP(data) ? "&": "", var);
176 "%s$%s", Z_ISREF_PP(data) ? "&": "", var);
[all...]
/PHP_TRUNK/Zend/
H A Dzend_generators.c63 temp_variable *var = EX_TMP_VAR(execute_data, brk_opline->op1.var); local
64 zval_ptr_dtor(&var->var.ptr);
69 temp_variable *var = EX_TMP_VAR(execute_data, brk_opline->op1.var); local
70 zval_dtor(&var->tmp_var);
239 static void copy_closure_static_var(zval **var TSRMLS_DC, int num_args, va_list args, zend_hash_key *key) /* {{{ */
243 SEPARATE_ZVAL_TO_MAKE_IS_REF(var);
244 Z_ADDREF_PP(var);
[all...]
H A Dzend_variables.c157 ZEND_API int zend_print_variable(zval *var) argument
159 return zend_print_zval(var, 0);
H A Dzend_execute.h36 } var; member in union:_temp_variable
38 zval **ptr_ptr; /* shared with var.ptr_ptr */
43 zval **ptr_ptr; /* shared with var.ptr_ptr */
44 zval *ptr; /* shared with var.ptr */
382 ZEND_API zval** zend_get_compiled_variable_value(const zend_execute_data *execute_data_ptr, zend_uint var);
397 zval* var; member in struct:_zend_free_op
/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);
407 static unsigned int php_sapi_filter(int arg, char *var, char **val, unsigned int val_len, unsigned int *new_val_len TSRMLS_DC) /* {{{ */ argument
446 if (arg == PARSE_COOKIE && orig_array_ptr && zend_symtable_exists(Z_ARRVAL_P(orig_array_ptr), var, strlen(var)+1)) {
456 php_register_variable_ex(var, &raw_var, array_ptr TSRMLS_CC);
477 php_register_variable_ex(var, &new_var, orig_array_ptr TSRMLS_CC);
573 char *var; local
577 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ls", &arg, &var, &var_len) == FAILURE) {
583 if (array_ptr && HASH_OF(array_ptr) && zend_hash_exists(HASH_OF(array_ptr), var, var_len + 1)) {
743 char *var; local
[all...]
/PHP_TRUNK/ext/mbstring/
H A Dmb_gpc.c197 char *var, *val; local
235 var = php_strtok_r(res, info->separator, &strtok_buf);
236 while (var) {
237 val = strchr(var, '=');
239 len_list[n] = php_url_decode(var, val-var);
240 val_list[n] = var;
247 len_list[n] = php_url_decode(var, strlen(var));
248 val_list[n] = var;
[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/opcache/Optimizer/
H A Dzend_optimizer.c305 zend_uint var,
312 ZEND_OP1(opline).var == var) {
342 ZEND_OP2(opline).var == var) {
360 zend_uint var,
368 ZEND_OP1(opline).var == var) {
376 ZEND_OP2(opline).var == var) {
303 replace_var_by_const(zend_op_array *op_array, zend_op *opline, zend_uint var, zval *val TSRMLS_DC) argument
358 replace_tmp_by_const(zend_op_array *op_array, zend_op *opline, zend_uint var, zval *val TSRMLS_DC) argument
[all...]
H A Dpass1_5.c45 zend_uint tv = ZEND_RESULT(opline).var; /* temporary variable */
80 zend_uint tv = ZEND_RESULT(opline).var; /* temporary variable */
119 zend_uint tv = ZEND_RESULT(opline).var; /* temporary variable */
158 if (ZEND_RESULT(opline).var != ZEND_RESULT(next_op).var) {
229 zend_uint tv = ZEND_RESULT(opline).var;
244 zend_uint tv = ZEND_RESULT(opline).var;
290 ZEND_RESULT((opline - 1)).var == ZEND_OP1(opline).var) {
296 zend_uint tv = ZEND_RESULT(opline).var;
524 int var = opline->result.var; variable
[all...]
/PHP_TRUNK/ext/standard/
H A Dformatted_print.c552 zval *var, var_copy; local
557 var = &var_copy;
559 var = tmp;
562 Z_STRVAL_P(var),
565 Z_STRLEN_P(var),
H A Dtype.c24 /* {{{ proto string gettype(mixed var)
89 /* {{{ proto bool settype(mixed var, string type)
93 zval **var; local
97 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Zs", &var, &type, &type_len) == FAILURE) {
102 convert_to_long(*var);
104 convert_to_long(*var);
106 convert_to_double(*var);
108 convert_to_double(*var);
110 convert_to_string(*var);
112 convert_to_array(*var);
372 zval *var, **callable_name = NULL; local
[all...]
H A Dvar.c170 /* {{{ proto void var_dump(mixed var)
316 /* {{{ proto void debug_zval_dump(mixed var)
520 /* {{{ proto mixed var_export(mixed var [, bool return])
524 zval *var; local
528 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z|b", &var, &return_output) == FAILURE) {
532 php_var_export_ex(&var, 1, &buf TSRMLS_CC);
546 static inline int php_add_var_hash(HashTable *var_hash, zval *var, void *var_old TSRMLS_DC) /* {{{ */ argument
552 if ((Z_TYPE_P(var) == IS_OBJECT) && Z_OBJ_HT_P(var)->get_class_entry) {
554 (long) zend_objects_get_address(var TSRMLS_C
[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/sapi/fpm/fpm/
H A Dfastcgi.c1051 char* fcgi_getenv(fcgi_request *req, const char* var, int var_len) argument
1057 if (zend_hash_find(req->env, (char*)var, var_len+1, (void**)&val) == SUCCESS) {
1063 char* fcgi_putenv(fcgi_request *req, char* var, int var_len, char* val) argument
1065 if (var && req) {
1067 zend_hash_del(req->env, var, var_len+1);
1072 if (zend_hash_update(req->env, var, var_len+1, &val, sizeof(char*), (void**)&ret) == SUCCESS) {
1092 zval ** var = (zval **)ptr; local
1093 pefree(Z_STRVAL_PP(var), 1);
1094 pefree(*var, 1);
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);
/PHP_TRUNK/main/
H A Dphp_ini.c896 zval *tmp, var; local
902 var = *tmp;
903 zval_copy_ctor(&var);
904 convert_to_long(&var);
905 *result = Z_LVAL(var);
914 zval *tmp, var; local
920 var = *tmp;
921 zval_copy_ctor(&var);
922 convert_to_double(&var);
923 *result = Z_DVAL(var);
[all...]
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
56 php_register_variable_ex(var, &new_entry, track_vars_array TSRMLS_CC);
64 char *var, *var_orig; local
93 var = var_orig = do_alloca(var_len + 1, use_heap);
97 for (p = var; *p; p++) {
107 var_len = p - var;
118 !memcmp(var, "GLOBALS", sizeof("GLOBALS")-1)) {
124 index = var;
242 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...]
H A DSAPI.c989 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
/PHP_TRUNK/ext/wddx/
H A Dwddx.c58 #define EL_VAR "var"
107 ZEND_ARG_INFO(0, var)
400 static void php_wddx_serialize_string(wddx_packet *packet, zval *var TSRMLS_DC)
404 if (Z_STRLEN_P(var) > 0) {
408 buf = php_escape_html_entities(Z_STRVAL_P(var), Z_STRLEN_P(var), &buf_len, 0, ENT_QUOTES, NULL TSRMLS_CC);
420 static void php_wddx_serialize_number(wddx_packet *packet, zval *var) argument
425 tmp = *var;
437 static void php_wddx_serialize_boolean(wddx_packet *packet, zval *var) argument
439 php_wddx_add_chunk(packet, Z_LVAL_P(var)
625 php_wddx_serialize_var(wddx_packet *packet, zval *var, char *name, int name_len TSRMLS_DC) argument
1159 zval *var; local
[all...]
/PHP_TRUNK/ext/oci8/
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...]
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])
/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
455 XSQLVAR *var; local
477 XSQLVAR *var = &sqlda->sqlvar[i]; local
[all...]

Completed in 36 milliseconds

12