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

/PHP_5_6/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
452 Z_STRLEN(raw_var) = val_len;
453 Z_STRVAL(raw_var) = estrndup(*val, val_len);
459 if (val_len) {
461 Z_STRLEN(new_var) = val_len;
466 Z_STRVAL(new_var) = estrndup(*val, val_len);
470 Z_STRVAL(new_var) = estrndup(*val, val_len);
/PHP_5_6/ext/snmp/
H A Dsnmp.c558 int val_len = vars->val_len; local
568 if (val_len > 512*1024) {
573 val_len *= 2;
579 dbuf = (char *)erealloc(dbuf, val_len + 1);
581 dbuf = (char *)emalloc(val_len + 1);
592 buflen = val_len;
595 if((valueretrieval & SNMP_VALUE_PLAIN) && val_len > buflen){
596 if ((dbuf = (char *)emalloc(val_len + 1))) {
598 buflen = val_len;
[all...]
/PHP_5_6/ext/xml/
H A Dxml.c777 int val_len; local
793 val = xml_utf8_decode(attributes[1], strlen(attributes[1]), &val_len, parser->target_encoding);
795 add_assoc_stringl(args[2], att, val, val_len, 0);
831 val = xml_utf8_decode(attributes[1], strlen(attributes[1]), &val_len, parser->target_encoding);
833 add_assoc_stringl(atr,att,val,val_len,0);
/PHP_5_6/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_5_6/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.c619 static void cgi_php_load_env_var(char *var, unsigned int var_len, char *val, unsigned int val_len, void *arg TSRMLS_DC) argument
1533 static void add_request_header(char *var, unsigned int var_len, char *val, unsigned int val_len, void *arg TSRMLS_DC) /* {{{ */ argument
1574 add_assoc_stringl_ex(return_value, var, var_len+1, val, val_len, 1);
H A Dfastcgi.c154 unsigned int val_len; member in struct:_fcgi_hash_bucket
254 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
264 p->val_len = val_len;
265 p->val = fcgi_hash_strndup(h, val, val_len);
286 p->val_len = val_len;
287 p->val = fcgi_hash_strndup(h, val, val_len);
302 (*p)->val_len = 0;
310 static char *fcgi_hash_get(fcgi_hash *h, unsigned int hash_value, char *var, unsigned int var_len, unsigned int *val_len) argument
844 unsigned int name_len, val_len; local
1459 unsigned int val_len; local
1468 unsigned int val_len; local
[all...]
/PHP_5_6/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);
487 p += name_len + val_len;
/PHP_5_6/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_5_6/sapi/apache_hooks/
H A Dphp_apache.c1811 int var_len, val_len; 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_6/main/
H A DSAPI.h200 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);
268 unsigned int (*input_filter)(int arg, char *var, char **val, unsigned int val_len, unsigned int *new_val_len TSRMLS_DC);
302 #define SAPI_INPUT_FILTER_FUNC(input_filter) unsigned int input_filter(int arg, char *var, char **val, unsigned int val_len, unsigned int *new_val_len TSRMLS_DC)
H A Dphp_variables.h41 PHPAPI void php_register_variable_safe(char *var, char *val, int val_len, zval *track_vars_array TSRMLS_DC);
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
H A Drfc1867.c61 static void safe_php_register_variable(char *var, char *strval, int val_len, zval *track_vars_array, zend_bool override_protection TSRMLS_DC);
166 static void safe_php_register_variable(char *var, char *strval, int val_len, zval *track_vars_array, zend_bool override_protection TSRMLS_DC) /* {{{ */ argument
169 php_register_variable_safe(var, strval, val_len, track_vars_array TSRMLS_CC);
H A Dphp_variables.c352 if(new_val_len) *new_val_len = val_len;
459 int val_len; local
464 val_len = php_url_decode(val, strlen(val));
465 val = estrndup(val, val_len);
466 if (sapi_module.input_filter(arg, var, &val, val_len, &new_val_len TSRMLS_CC)) {
471 int val_len; local
475 val_len = 0;
476 val = estrndup("", val_len);
477 if (sapi_module.input_filter(arg, var, &val, val_len, &new_val_len TSRMLS_CC)) {
/PHP_5_6/ext/dba/
H A Ddba.c554 int 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_5_6/ext/soap/
H A Dsoap.c3130 int name_len, val_len = 0; local
3133 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s", &name, &name_len, &val, &val_len) == FAILURE) {
3154 add_index_stringl(zcookie, 0, val, val_len, 1);
/PHP_5_6/ext/mbstring/
H A Dmb_gpc.c202 unsigned int val_len, new_val_len; local
326 val_len = resval.len;
329 val_len = len_list[n];
333 val = estrndup(val, val_len);
334 if (sapi_module.input_filter(info->data_type, var, &val, val_len, &new_val_len TSRMLS_CC)) {
/PHP_5_6/ext/session/
H A Dmod_user_class.c75 int key_len, val_len; local
83 if (PS(default_mod)->s_read(&PS(mod_data), key, &val, &val_len TSRMLS_CC) == FAILURE) {
88 RETVAL_STRINGL(val, val_len, 1);
99 int key_len, val_len; local
103 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &key, &key_len, &val, &val_len) == FAILURE) {
107 RETVAL_BOOL(SUCCESS == PS(default_mod)->s_write(&PS(mod_data), key, val, val_len TSRMLS_CC));

Completed in 118 milliseconds