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

/PHP_TRUNK/sapi/fpm/fpm/
H A Dfastcgi.c439 int val_len = 0; local
453 bytes_consumed = fcgi_get_params_len(&val_len, p, end);
460 if (name_len > (INT_MAX - val_len) || /* would the addition overflow? */
461 name_len + val_len > end - p) { /* would we exceed the buffer? */
490 s = estrndup((char*)p + name_len, val_len);
492 p += name_len + val_len;
/PHP_TRUNK/ext/dba/
H A Ddba.c554 size_t val_len; local
563 if (zend_parse_parameters(ac, "zsr", &key, &val, &val_len, &id) == FAILURE) {
575 if (info->hnd->update(info, key_str, key_len, val, val_len, mode) == SUCCESS) {
/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);
415 static unsigned int php_sapi_filter(int arg, char *var, char **val, size_t val_len, size_t *new_val_len) /* {{{ */ argument
457 ZVAL_STRINGL(&raw_var, *val, val_len);
461 if (val_len) {
464 ZVAL_STRINGL(&new_var, *val, val_len);
467 ZVAL_STRINGL(&new_var, *val, val_len);
/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)) {
/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/soap/
H A Dsoap.c3130 size_t name_len, val_len = 0; local
3134 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|s", &name, &name_len, &val, &val_len) == FAILURE) {
3153 add_index_stringl(&zcookie, 0, val, val_len);
/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 DSAPI.c990 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 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), unsigned int (*input_filter_init)(void));
269 unsigned int (*input_filter)(int arg, char *var, char **val, size_t val_len, size_t *new_val_len);
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)
H A Dphp_variables.c352 if(new_val_len) *new_val_len = val_len;
452 size_t val_len; local
457 val_len = php_url_decode(val, strlen(val));
458 val = estrndup(val, val_len);
459 if (sapi_module.input_filter(arg, var, &val, val_len, &new_val_len)) {
464 size_t val_len; local
468 val_len = 0;
469 val = estrndup("", val_len);
470 if (sapi_module.input_filter(arg, var, &val, val_len, &new_val_len)) {
H A Dphp_variables.h41 PHPAPI void php_register_variable_safe(char *var, char *val, size_t val_len, zval *track_vars_array);
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
167 php_register_variable_safe(var, strval, val_len, track_vars_array);
/PHP_TRUNK/sapi/apache/
H A Dmod_php7.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)) {
H A Dphp_apache.c438 int var_len, val_len; local
443 if (zend_parse_parameters(ZEND_NUM_ARGS(), "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.c1809 int var_len, val_len; local
1814 if (zend_parse_parameters(ZEND_NUM_ARGS(), "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 Dcgi_main.c640 static void cgi_php_load_env_var(char *var, unsigned int var_len, char *val, unsigned int val_len, void *arg) argument
1550 static void add_request_header(char *var, unsigned int var_len, char *val, unsigned int val_len, void *arg) /* {{{ */ argument
1591 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
849 unsigned int name_len, val_len; local
1464 unsigned int val_len; local
1473 unsigned int val_len; local
[all...]
H A Dfastcgi.h111 typedef void (*fcgi_apply_func)(char *var, unsigned int var_len, char *val, unsigned int val_len, void *arg);

Completed in 38 milliseconds