Searched refs:val_len (Results 1 - 18 of 18) sorted by relevance

/PHP_TRUNK/sapi/apache/
H A Dphp_apache.c438 int var_len, val_len; 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));
H A Dmod_php5.c265 int val_len; local
272 val_len = strlen(val);
273 if (sapi_module.input_filter(PARSE_SERVER, elts[i].key, &val, val_len, &new_val_len TSRMLS_CC)) {
/PHP_TRUNK/sapi/apache_hooks/
H A Dphp_apache.c1809 int var_len, val_len; 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/cgi/
H A Dfastcgi.h111 typedef void (*fcgi_apply_func)(char *var, unsigned int var_len, char *val, unsigned int val_len, void *arg TSRMLS_DC);
H A Dcgi_main.c621 static void cgi_php_load_env_var(char *var, unsigned int var_len, char *val, unsigned int val_len, void *arg TSRMLS_DC) argument
1528 static void add_request_header(char *var, unsigned int var_len, char *val, unsigned int val_len, void *arg TSRMLS_DC) /* {{{ */ argument
1569 add_assoc_stringl_ex(return_value, var, var_len+1, val, val_len);
H A Dfastcgi.c153 unsigned int val_len; member in struct:_fcgi_hash_bucket
253 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
263 p->val_len = val_len;
264 p->val = fcgi_hash_strndup(h, val, val_len);
285 p->val_len = val_len;
286 p->val = fcgi_hash_strndup(h, val, val_len);
301 (*p)->val_len = 0;
309 static char *fcgi_hash_get(fcgi_hash *h, unsigned int hash_value, char *var, unsigned int var_len, unsigned int *val_len) argument
843 unsigned int name_len, val_len; local
1458 unsigned int val_len; local
1467 unsigned int val_len; local
[all...]
/PHP_TRUNK/ext/mbstring/
H A Dmb_gpc.c200 size_t val_len, new_val_len; local
324 val_len = resval.len;
327 val_len = len_list[n];
331 val = estrndup(val, val_len);
332 if (sapi_module.input_filter(info->data_type, var, &val, val_len, &new_val_len TSRMLS_CC)) {
/PHP_TRUNK/ext/standard/
H A Dftp_fopen_wrapper.c235 #define PHP_FTP_CNTRL_CHK(val, val_len, err_msg) { \
236 unsigned char *s = val, *e = s + val_len; \
/PHP_TRUNK/main/
H A Dphp_variables.c350 if(new_val_len) *new_val_len = val_len;
450 size_t val_len; local
455 val_len = php_url_decode(val, strlen(val));
456 val = estrndup(val, val_len);
457 if (sapi_module.input_filter(arg, var, &val, val_len, &new_val_len TSRMLS_CC)) {
462 size_t val_len; local
466 val_len = 0;
467 val = estrndup("", val_len);
468 if (sapi_module.input_filter(arg, var, &val, val_len, &new_val_len TSRMLS_CC)) {
H A Dphp_variables.h41 PHPAPI void php_register_variable_safe(char *var, char *val, size_t val_len, zval *track_vars_array TSRMLS_DC);
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 TSRMLS_DC);
164 static void safe_php_register_variable(char *var, char *strval, size_t val_len, zval *track_vars_array, zend_bool override_protection TSRMLS_DC) /* {{{ */ argument
167 php_register_variable_safe(var, strval, val_len, track_vars_array TSRMLS_CC);
H A DSAPI.h201 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 TSRMLS_DC), unsigned int (*input_filter_init)(TSRMLS_D) TSRMLS_DC);
269 unsigned int (*input_filter)(int arg, char *var, char **val, size_t val_len, size_t *new_val_len TSRMLS_DC);
303 #define SAPI_INPUT_FILTER_FUNC(input_filter) unsigned int input_filter(int arg, char *var, char **val, size_t val_len, size_t *new_val_len TSRMLS_DC)
H A DSAPI.c987 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 TSRMLS_DC), unsigned int (*input_filter_init)(TSRMLS_D) TSRMLS_DC) argument
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfastcgi.c430 int val_len = 0; local
444 bytes_consumed = fcgi_get_params_len(&val_len, p, end);
451 if (name_len > (INT_MAX - val_len) || /* would the addition overflow? */
452 name_len + val_len > end - p) { /* would we exceed the buffer? */
481 s = estrndup((char*)p + name_len, val_len);
483 p += name_len + val_len;
/PHP_TRUNK/ext/dba/
H A Ddba.c554 size_t val_len; local
563 if (zend_parse_parameters(ac TSRMLS_CC, "zsr", &key, &val, &val_len, &id) == FAILURE) {
575 if (info->hnd->update(info, key_str, key_len, val, val_len, mode TSRMLS_CC) == SUCCESS) {
/PHP_TRUNK/ext/snmp/
H A Dsnmp.c557 int val_len = vars->val_len; local
567 if (val_len > 512*1024) {
572 val_len *= 2;
578 dbuf = (char *)erealloc(dbuf, val_len + 1);
580 dbuf = (char *)emalloc(val_len + 1);
591 buflen = val_len;
594 if((valueretrieval & SNMP_VALUE_PLAIN) && val_len > buflen){
595 if ((dbuf = (char *)emalloc(val_len + 1))) {
597 buflen = val_len;
[all...]
/PHP_TRUNK/ext/filter/
H A Dfilter.c80 static unsigned int php_sapi_filter(int arg, char *var, char **val, size_t val_len, size_t *new_val_len TSRMLS_DC);
405 static unsigned int php_sapi_filter(int arg, char *var, char **val, size_t val_len, size_t *new_val_len TSRMLS_DC) /* {{{ */ argument
447 ZVAL_STRINGL(&raw_var, *val, val_len);
451 if (val_len) {
454 ZVAL_STRINGL(&new_var, *val, val_len);
457 ZVAL_STRINGL(&new_var, *val, val_len);
/PHP_TRUNK/ext/soap/
H A Dsoap.c3120 size_t name_len, val_len = 0; local
3124 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s", &name, &name_len, &val, &val_len) == FAILURE) {
3143 add_index_stringl(&zcookie, 0, val, val_len);

Completed in 49 milliseconds