Searched defs:val_len (Results 1 - 16 of 16) sorted by relevance

/PHP_5_5/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_5/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_5/main/
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
164 php_register_variable_safe(var, strval, val_len, track_vars_array TSRMLS_CC);
H A Dphp_variables.c247 unsigned int val_len, new_val_len; local
257 val_len = php_url_decode(val, (p - val));
258 val = estrndup(val, val_len);
259 if (sapi_module.input_filter(PARSE_POST, var, &val, val_len, &new_val_len TSRMLS_CC)) {
275 if(new_val_len) *new_val_len = val_len;
382 int val_len; local
387 val_len = php_url_decode(val, strlen(val));
388 val = estrndup(val, val_len);
389 if (sapi_module.input_filter(arg, var, &val, val_len, &new_val_len TSRMLS_CC)) {
394 int val_len; 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_5/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_5/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_5/sapi/apache/
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)) {
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));
/PHP_5_5/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_5/sapi/cgi/
H A Dcgi_main.c616 static void cgi_php_load_env_var(char *var, unsigned int var_len, char *val, unsigned int val_len, void *arg TSRMLS_DC) argument
1530 static void add_request_header(char *var, unsigned int var_len, char *val, unsigned int val_len, void *arg TSRMLS_DC) /* {{{ */ argument
1571 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_5/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_5/ext/soap/
H A Dsoap.c3131 int name_len, val_len = 0; local
3134 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s", &name, &name_len, &val, &val_len) == FAILURE) {
3155 add_index_stringl(zcookie, 0, val, val_len, 1);
/PHP_5_5/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_5/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 38 milliseconds