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

12

/PHP_5_4/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_5_4/ext/phar/
H A Dphar.c503 # define PHAR_GET_32(buffer, var) \
504 var = ((((unsigned char*)(buffer))[3]) << 24) \
509 # define PHAR_GET_16(buffer, var) \
510 var = ((((unsigned char*)(buffer))[1]) << 8) \
514 # define PHAR_GET_32(buffer, var) \
515 memcpy(&var, buffer, sizeof(var)); \
517 # define PHAR_GET_16(buffer, var) \
518 var = *(php_uint16*)(buffer); \
521 #define PHAR_ZIP_16(var) ((php_uint1
2486 phar_set_32(char *buffer, int var) argument
[all...]
H A Dphar_internal.h571 zstr var; local
572 s = phar_make_unicode(&var, key, len TSRMLS_CC);
573 if (SUCCESS == zend_u_hash_find(_SERVER, IS_UNICODE, var, s, stuff)) {
574 efree(var.u);
577 efree(var.u);
/PHP_5_4/ext/standard/
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);
358 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...]
H A Dformatted_print.c554 zval *var, var_copy; local
559 var = &var_copy;
561 var = tmp;
564 Z_STRVAL_P(var),
567 Z_STRLEN_P(var),
/PHP_5_4/main/
H A Dphp_ini.c861 zval *tmp, var; local
867 var = *tmp;
868 zval_copy_ctor(&var);
869 convert_to_long(&var);
870 *result = Z_LVAL(var);
879 zval *tmp, var; local
885 var = *tmp;
886 zval_copy_ctor(&var);
887 convert_to_double(&var);
888 *result = Z_DVAL(var);
[all...]
H A Drfc1867.c56 static void safe_php_register_variable(char *var, char *strval, int val_len, zval *track_vars_array, zend_bool override_protection TSRMLS_DC);
161 static void safe_php_register_variable(char *var, char *strval, int val_len, zval *track_vars_array, zend_bool override_protection TSRMLS_DC) /* {{{ */ argument
163 if (override_protection || !is_protected_variable(var TSRMLS_CC)) {
164 php_register_variable_safe(var, strval, val_len, track_vars_array TSRMLS_CC);
169 static void safe_php_register_variable_ex(char *var, zval *val, zval *track_vars_array, zend_bool override_protection TSRMLS_DC) /* {{{ */ argument
171 if (override_protection || !is_protected_variable(var TSRMLS_CC)) {
172 php_register_variable_ex(var, val, track_vars_array TSRMLS_CC);
183 static void register_http_post_files_variable_ex(char *var, zval *val, zval *http_post_files, zend_bool override_protection TSRMLS_DC) /* {{{ */ argument
185 safe_php_register_variable_ex(var, val, http_post_files, override_protection TSRMLS_CC);
H A Dphp_variables.c37 PHPAPI void php_register_variable(char *var, char *strval, zval *track_vars_array TSRMLS_DC) argument
39 php_register_variable_safe(var, strval, strlen(strval), track_vars_array TSRMLS_CC);
43 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;
234 char *var, *val, *e, *s, *p; local
282 char *res = NULL, *var, *val, *separator = NULL; local
[all...]
H A DSAPI.c985 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_5_4/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_5_4/sapi/apache_hooks/
H A Dphp_apache.c1813 char *var = NULL, *val = NULL; local
1816 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|b", &var, &var_len, &val, &val_len, &top) == FAILURE) {
1827 ap_table_setn(r->subprocess_env, ap_pstrndup(r->pool, var, var_len), ap_pstrndup(r->pool, val, val_len));
/PHP_5_4/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_5_4/Zend/
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 */
410 ZEND_API zval** zend_get_compiled_variable_value(const zend_execute_data *execute_data_ptr, zend_uint var);
425 zval* var; member in struct:_zend_free_op
H A Dzend_variables.c152 ZEND_API int zend_print_variable(zval *var) argument
154 return zend_print_zval(var, 0);
H A Dzend_vm_def.h34 fast_add_function(&EX_T(opline->result.var).tmp_var,
49 fast_sub_function(&EX_T(opline->result.var).tmp_var,
64 fast_mul_function(&EX_T(opline->result.var).tmp_var,
79 fast_div_function(&EX_T(opline->result.var).tmp_var,
94 fast_mod_function(&EX_T(opline->result.var).tmp_var,
109 shift_left_function(&EX_T(opline->result.var).tmp_var,
124 shift_right_function(&EX_T(opline->result.var).tmp_var,
139 concat_function(&EX_T(opline->result.var).tmp_var,
154 is_identical_function(&EX_T(opline->result.var).tmp_var,
167 zval *result = &EX_T(opline->result.var)
2072 zval *var; variable
2098 zval_dtor(var); variable
[all...]
/PHP_5_4/ext/filter/
H A Dfilter.c79 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
444 if (arg == PARSE_COOKIE && orig_array_ptr && zend_symtable_exists(Z_ARRVAL_P(orig_array_ptr), var, strlen(var)+1)) {
454 php_register_variable_ex(var, &raw_var, array_ptr TSRMLS_CC);
475 php_register_variable_ex(var, &new_var, orig_array_ptr TSRMLS_CC);
571 char *var; local
575 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ls", &arg, &var, &var_len) == FAILURE) {
581 if (array_ptr && HASH_OF(array_ptr) && zend_hash_exists(HASH_OF(array_ptr), var, var_len + 1)) {
741 char *var; local
[all...]
/PHP_5_4/ext/mssql/
H A Dphp_mssql.c126 ZEND_ARG_INFO(1, var)
2004 /* {{{ proto bool mssql_bind(resource stmt, string param_name, mixed var, int type [, bool is_output [, bool is_null [, int maxlen]]])
2012 zval *stmt, **var; local
2019 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) {
2040 convert_to_string_ex(var);
2041 datalen=Z_STRLEN_PP(var);
2042 value=(LPBYTE)Z_STRVAL_PP(var);
2057 convert_to_double_ex(var);
2058 value=(LPBYTE)(&Z_DVAL_PP(var));
2065 convert_to_long_ex(var);
[all...]
/PHP_5_4/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.c985 int php_oci_bind_by_name(php_oci_statement *statement, char *name, int name_len, zval* var, long maxlength, ub2 type TSRMLS_DC) argument
1003 if (Z_TYPE_P(var) != IS_OBJECT || zend_hash_find(Z_OBJPROP_P(var), "collection", sizeof("collection"), (void **)&tmp) == FAILURE) {
1025 if (Z_TYPE_P(var) != IS_OBJECT || zend_hash_find(Z_OBJPROP_P(var), "descriptor", sizeof("descriptor"), (void **)&tmp) == FAILURE) {
1044 if (Z_TYPE_P(var) == IS_RESOURCE || Z_TYPE_P(var) == IS_OBJECT) {
1048 convert_to_long(var);
1049 bind_data = (ub4 *)&Z_LVAL_P(var);
1059 if (Z_TYPE_P(var)
1407 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
1506 php_oci_bind_array_helper_string(zval* var, long max_table_length, long maxlength TSRMLS_DC) argument
1575 php_oci_bind_array_helper_number(zval* var, long max_table_length TSRMLS_DC) argument
1613 php_oci_bind_array_helper_double(zval* var, long max_table_length TSRMLS_DC) argument
1651 php_oci_bind_array_helper_date(zval* var, long max_table_length, php_oci_connection *connection TSRMLS_DC) argument
[all...]
/PHP_5_4/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
1507 XSQLVAR *var = &ib_result->out_sqlda->sqlvar[i]; local
1912 _php_ibase_field_info(zval *return_value, XSQLVAR *var) argument
[all...]
/PHP_5_4/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...]
/PHP_5_4/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_5_4/ext/wddx/
H A Dwddx.c58 #define EL_VAR "var"
107 ZEND_ARG_INFO(0, var)
402 static void php_wddx_serialize_string(wddx_packet *packet, zval *var TSRMLS_DC)
406 if (Z_STRLEN_P(var) > 0) {
410 buf = php_escape_html_entities(Z_STRVAL_P(var), Z_STRLEN_P(var), &buf_len, 0, ENT_QUOTES, NULL TSRMLS_CC);
422 static void php_wddx_serialize_number(wddx_packet *packet, zval *var) argument
427 tmp = *var;
439 static void php_wddx_serialize_boolean(wddx_packet *packet, zval *var) argument
441 php_wddx_add_chunk(packet, Z_LVAL_P(var)
627 php_wddx_serialize_var(wddx_packet *packet, zval *var, char *name, int name_len TSRMLS_DC) argument
1161 zval *var; local
[all...]

Completed in 42 milliseconds

12