Lines Matching refs:buf
840 smart_str buf = {0}; in PHP_INI_END() local
845 php_var_serialize(&buf, Z_REFVAL(PS(http_session_vars)), &var_hash); in PHP_INI_END()
848 return buf.s; in PHP_INI_END()
890 smart_str buf = {0}; in PS_SERIALIZER_ENCODE_FUNC() local
898 smart_str_appendc(&buf, (unsigned char)ZSTR_LEN(key)); in PS_SERIALIZER_ENCODE_FUNC()
899 smart_str_appendl(&buf, ZSTR_VAL(key), ZSTR_LEN(key)); in PS_SERIALIZER_ENCODE_FUNC()
900 php_var_serialize(&buf, struc, &var_hash); in PS_SERIALIZER_ENCODE_FUNC()
903 smart_str_0(&buf); in PS_SERIALIZER_ENCODE_FUNC()
906 return buf.s; in PS_SERIALIZER_ENCODE_FUNC()
956 smart_str buf = {0}; in PS_SERIALIZER_ENCODE_FUNC() local
963 smart_str_appendl(&buf, ZSTR_VAL(key), ZSTR_LEN(key)); in PS_SERIALIZER_ENCODE_FUNC()
966 smart_str_free(&buf); in PS_SERIALIZER_ENCODE_FUNC()
969 smart_str_appendc(&buf, PS_DELIMITER); in PS_SERIALIZER_ENCODE_FUNC()
970 php_var_serialize(&buf, struc, &var_hash); in PS_SERIALIZER_ENCODE_FUNC()
973 smart_str_0(&buf); in PS_SERIALIZER_ENCODE_FUNC()
976 return buf.s; in PS_SERIALIZER_ENCODE_FUNC()
1119 char buf[MAX_STR]; in strcpy_gmt() local
1130 n = slprintf(buf, sizeof(buf), "%s, %02d %s %d %02d:%02d:%02d GMT", /* SAFE */ in strcpy_gmt()
1135 memcpy(ubuf, buf, n); in strcpy_gmt()
1144 char buf[MAX_STR + 1]; in last_modified() local
1153 memcpy(buf, LAST_MODIFIED, sizeof(LAST_MODIFIED) - 1); in last_modified()
1154 strcpy_gmt(buf + sizeof(LAST_MODIFIED) - 1, &sb.st_mtime); in last_modified()
1155 ADD_HEADER(buf); in last_modified()
1163 char buf[MAX_STR + 1]; in CACHE_LIMITER_FUNC() local
1169 memcpy(buf, EXPIRES, sizeof(EXPIRES) - 1); in CACHE_LIMITER_FUNC()
1170 strcpy_gmt(buf + sizeof(EXPIRES) - 1, &now); in CACHE_LIMITER_FUNC()
1171 ADD_HEADER(buf); in CACHE_LIMITER_FUNC()
1173 …snprintf(buf, sizeof(buf) , "Cache-Control: public, max-age=" ZEND_LONG_FMT, PS(cache_expire) * 60… in CACHE_LIMITER_FUNC()
1174 ADD_HEADER(buf); in CACHE_LIMITER_FUNC()
1182 char buf[MAX_STR + 1]; in CACHE_LIMITER_FUNC() local
1184 …snprintf(buf, sizeof(buf), "Cache-Control: private, max-age=" ZEND_LONG_FMT, PS(cache_expire) * 60… in CACHE_LIMITER_FUNC()
1185 ADD_HEADER(buf); in CACHE_LIMITER_FUNC()
2432 smart_str buf ={0}; in php_session_start_set_ini() local
2433 smart_str_appends(&buf, "session"); in php_session_start_set_ini()
2434 smart_str_appendc(&buf, '.'); in php_session_start_set_ini()
2435 smart_str_append(&buf, varname); in php_session_start_set_ini()
2436 smart_str_0(&buf); in php_session_start_set_ini()
2437 ret = zend_alter_ini_entry_ex(buf.s, new_value, PHP_INI_USER, PHP_INI_STAGE_RUNTIME, 0); in php_session_start_set_ini()
2438 smart_str_free(&buf); in php_session_start_set_ini()