Lines Matching refs:buf

850 	smart_str buf = {0};  in PHP_INI_END()  local
855 php_var_serialize(&buf, Z_REFVAL(PS(http_session_vars)), &var_hash); in PHP_INI_END()
858 return buf.s; in PHP_INI_END()
900 smart_str buf = {0}; in PS_SERIALIZER_ENCODE_FUNC() local
908 smart_str_appendc(&buf, (unsigned char)ZSTR_LEN(key)); in PS_SERIALIZER_ENCODE_FUNC()
909 smart_str_appendl(&buf, ZSTR_VAL(key), ZSTR_LEN(key)); in PS_SERIALIZER_ENCODE_FUNC()
910 php_var_serialize(&buf, struc, &var_hash); in PS_SERIALIZER_ENCODE_FUNC()
913 smart_str_0(&buf); in PS_SERIALIZER_ENCODE_FUNC()
916 return buf.s; in PS_SERIALIZER_ENCODE_FUNC()
965 smart_str buf = {0}; in PS_SERIALIZER_ENCODE_FUNC() local
972 smart_str_appendl(&buf, ZSTR_VAL(key), ZSTR_LEN(key)); in PS_SERIALIZER_ENCODE_FUNC()
975 smart_str_free(&buf); in PS_SERIALIZER_ENCODE_FUNC()
978 smart_str_appendc(&buf, PS_DELIMITER); in PS_SERIALIZER_ENCODE_FUNC()
979 php_var_serialize(&buf, struc, &var_hash); in PS_SERIALIZER_ENCODE_FUNC()
982 smart_str_0(&buf); in PS_SERIALIZER_ENCODE_FUNC()
985 return buf.s; in PS_SERIALIZER_ENCODE_FUNC()
1131 char buf[MAX_STR]; in strcpy_gmt() local
1142 n = slprintf(buf, sizeof(buf), "%s, %02d %s %d %02d:%02d:%02d GMT", /* SAFE */ in strcpy_gmt()
1147 memcpy(ubuf, buf, n); in strcpy_gmt()
1156 char buf[MAX_STR + 1]; in last_modified() local
1165 memcpy(buf, LAST_MODIFIED, sizeof(LAST_MODIFIED) - 1); in last_modified()
1166 strcpy_gmt(buf + sizeof(LAST_MODIFIED) - 1, &sb.st_mtime); in last_modified()
1167 ADD_HEADER(buf); in last_modified()
1175 char buf[MAX_STR + 1]; in CACHE_LIMITER_FUNC() local
1181 memcpy(buf, EXPIRES, sizeof(EXPIRES) - 1); in CACHE_LIMITER_FUNC()
1182 strcpy_gmt(buf + sizeof(EXPIRES) - 1, &now); in CACHE_LIMITER_FUNC()
1183 ADD_HEADER(buf); in CACHE_LIMITER_FUNC()
1185 …snprintf(buf, sizeof(buf) , "Cache-Control: public, max-age=" ZEND_LONG_FMT, PS(cache_expire) * 60… in CACHE_LIMITER_FUNC()
1186 ADD_HEADER(buf); in CACHE_LIMITER_FUNC()
1194 char buf[MAX_STR + 1]; in CACHE_LIMITER_FUNC() local
1196 …snprintf(buf, sizeof(buf), "Cache-Control: private, max-age=" ZEND_LONG_FMT, PS(cache_expire) * 60… in CACHE_LIMITER_FUNC()
1197 ADD_HEADER(buf); in CACHE_LIMITER_FUNC()
2514 smart_str buf ={0}; in php_session_start_set_ini() local
2515 smart_str_appends(&buf, "session"); in php_session_start_set_ini()
2516 smart_str_appendc(&buf, '.'); in php_session_start_set_ini()
2517 smart_str_append(&buf, varname); in php_session_start_set_ini()
2518 smart_str_0(&buf); in php_session_start_set_ini()
2519 ret = zend_alter_ini_entry_ex(buf.s, new_value, PHP_INI_USER, PHP_INI_STAGE_RUNTIME, 0); in php_session_start_set_ini()
2520 smart_str_free(&buf); in php_session_start_set_ini()