Lines Matching refs:buf

297 	char *buf, *outid;  in php_session_create_id()  local
314 …spprintf(&buf, 0, "%.15s%ld%ld%0.8F", remote_addr ? remote_addr : "", tv.tv_sec, (long int)tv.tv_u… in php_session_create_id()
319 PHP_MD5Update(&md5_context, (unsigned char *) buf, strlen(buf)); in php_session_create_id()
324 PHP_SHA1Update(&sha1_context, (unsigned char *) buf, strlen(buf)); in php_session_create_id()
331 efree(buf); in php_session_create_id()
337 PS(hash_ops)->hash_update(hash_context, (unsigned char *) buf, strlen(buf)); in php_session_create_id()
343 efree(buf); in php_session_create_id()
346 efree(buf); in php_session_create_id()
843 smart_str buf = {0}; in PHP_INI_END() local
847 php_var_serialize(&buf, &PS(http_session_vars), &var_hash TSRMLS_CC); in PHP_INI_END()
850 *newlen = buf.len; in PHP_INI_END()
852 smart_str_0(&buf); in PHP_INI_END()
853 *newstr = buf.c; in PHP_INI_END()
889 smart_str buf = {0}; in PS_SERIALIZER_ENCODE_FUNC() local
897 smart_str_appendc(&buf, (unsigned char) key_length); in PS_SERIALIZER_ENCODE_FUNC()
898 smart_str_appendl(&buf, key, key_length); in PS_SERIALIZER_ENCODE_FUNC()
899 php_var_serialize(&buf, struc, &var_hash TSRMLS_CC); in PS_SERIALIZER_ENCODE_FUNC()
902 smart_str_appendc(&buf, (unsigned char) (key_length & PS_BIN_UNDEF));
903 smart_str_appendl(&buf, key, key_length);
907 *newlen = buf.len;
909 smart_str_0(&buf);
910 *newstr = buf.c;
976 smart_str buf = {0};
983 smart_str_appendl(&buf, key, key_length);
986 smart_str_free(&buf);
989 smart_str_appendc(&buf, PS_DELIMITER);
991 php_var_serialize(&buf, struc, &var_hash TSRMLS_CC);
993 smart_str_appendc(&buf, PS_UNDEF_MARKER);
994 smart_str_appendl(&buf, key, key_length);
995 smart_str_appendc(&buf, PS_DELIMITER);
999 *newlen = buf.len;
1001 smart_str_0(&buf);
1002 *newstr = buf.c;
1154 char buf[MAX_STR];
1165 n = slprintf(buf, sizeof(buf), "%s, %02d %s %d %02d:%02d:%02d GMT", /* SAFE */
1170 memcpy(ubuf, buf, n);
1179 char buf[MAX_STR + 1];
1188 memcpy(buf, LAST_MODIFIED, sizeof(LAST_MODIFIED) - 1);
1189 strcpy_gmt(buf + sizeof(LAST_MODIFIED) - 1, &sb.st_mtime);
1190 ADD_HEADER(buf);
1198 char buf[MAX_STR + 1];
1204 memcpy(buf, EXPIRES, sizeof(EXPIRES) - 1);
1205 strcpy_gmt(buf + sizeof(EXPIRES) - 1, &now);
1206 ADD_HEADER(buf);
1208 …snprintf(buf, sizeof(buf) , "Cache-Control: public, max-age=%ld", PS(cache_expire) * 60); /* SAFE …
1209 ADD_HEADER(buf);
1217 char buf[MAX_STR + 1];
1219 …snprintf(buf, sizeof(buf), "Cache-Control: private, max-age=%ld, pre-check=%ld", PS(cache_expire) …
1220 ADD_HEADER(buf);