/PHP-7.0/sapi/fpm/fpm/ |
H A D | fpm_log.c | 237 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", env ? env : "-"); in fpm_log_write() 250 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%zu", proc.content_length); in fpm_log_write() 264 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%zu", proc.memory); in fpm_log_write() 270 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%lu", proc.memory / 1024); in fpm_log_write() 342 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%ld", (long)getpid()); in fpm_log_write() 348 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%ld", (long)getppid()); in fpm_log_write() 354 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", proc.query_string); in fpm_log_write() 366 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", proc.request_uri); in fpm_log_write() 373 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", tmp ? tmp : "-"); in fpm_log_write() 397 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", tmp); in fpm_log_write() [all …]
|
H A D | zlog.c | 75 len += snprintf(timebuf + len, timebuf_len - len, ".%06d", (int) tv->tv_usec); in zlog_print_time() 77 len += snprintf(timebuf + len, timebuf_len - len, "] "); in zlog_print_time() 134 …len += snprintf(buf, buf_size, "[%s] %s(), line %d: ", level_names[flags & ZLOG_LEVEL_MASK], funct… in vzlog() 136 len += snprintf(buf, buf_size, "[%s] ", level_names[flags & ZLOG_LEVEL_MASK]); in vzlog() 147 …len += snprintf(buf + len, buf_size - len, "%s: pid %d, %s(), line %d: ", level_names[flags & ZLOG… in vzlog() 149 …len += snprintf(buf + len, buf_size - len, "%s: %s(), line %d: ", level_names[flags & ZLOG_LEVEL_M… in vzlog() 152 len += snprintf(buf + len, buf_size - len, "%s: ", level_names[flags & ZLOG_LEVEL_MASK]); in vzlog() 169 len += snprintf(buf + len, buf_size - len, ": %s (%d)", strerror(saved_errno), saved_errno); in vzlog()
|
/PHP-7.0/ext/xmlrpc/libxmlrpc/ |
H A D | xmlrpc_win32.h | 9 #if !defined(snprintf) && _MSC_VER < 1900 10 # define snprintf _snprintf macro
|
H A D | acinclude.m4 | 7 strtoul strtoull snprintf \
|
H A D | xml_to_soap.c | 93 snprintf(buf, sizeof(buf), "%s", array_type); in parse_array_type_info() 459 snprintf(buf, sizeof(buf), "%s[%i]", type, XMLRPC_VectorSize(node)); in SOAP_to_xml_element_worker() 505 snprintf(buf, BUF_SIZE, "%i", XMLRPC_GetValueInt(node)); in SOAP_to_xml_element_worker() 510 snprintf(buf, BUF_SIZE, "%i", XMLRPC_GetValueBoolean(node)); in SOAP_to_xml_element_worker() 515 snprintf(buf, BUF_SIZE, "%f", XMLRPC_GetValueDouble(node)); in SOAP_to_xml_element_worker() 631 snprintf(buf, sizeof(buf), "%s%s", in SOAP_REQUEST_to_xml_element()
|
H A D | xml_to_dandarpc.c | 209 snprintf(buf, BUF_SIZE, "%i", XMLRPC_GetValueInt(node)); in DANDARPC_to_xml_element_worker() 214 snprintf(buf, BUF_SIZE, "%i", XMLRPC_GetValueBoolean(node)); in DANDARPC_to_xml_element_worker() 219 snprintf(buf, BUF_SIZE, "%f", XMLRPC_GetValueDouble(node)); in DANDARPC_to_xml_element_worker()
|
/PHP-7.0/ext/zip/lib/ |
H A D | zip_error_to_str.c | 49 return snprintf(buf, len, "Unknown error %d", ze); in zip_error_to_str() 66 return snprintf(buf, len, "%s%s%s", in zip_error_to_str()
|
/PHP-7.0/main/ |
H A D | snprintf.h | 104 #ifdef snprintf 105 #undef snprintf 107 #define snprintf ap_php_snprintf macro
|
H A D | rfc1867.c | 944 snprintf(param, MAX_SIZE_ANONNAME, "%u", anonindex++); 1144 snprintf(lbuf, llen, "%s_name[%s]", abuf, array_index); 1146 snprintf(lbuf, llen, "%s_name", param); 1167 snprintf(lbuf, llen, "%s[name]", param); 1186 snprintf(lbuf, llen, "%s_type[%s]", abuf, array_index); 1188 snprintf(lbuf, llen, "%s_type", param); 1198 snprintf(lbuf, llen, "%s[type]", param); 1230 snprintf(lbuf, llen, "%s[tmp_name]", param); 1274 snprintf(lbuf, llen, "%s[error]", param); 1282 snprintf(lbuf, llen, "%s_size", param); [all …]
|
/PHP-7.0/ext/standard/ |
H A D | info.c | 130 snprintf(reg_name, sizeof(reg_name), "Registered %s", name); in php_info_print_stream_hash() 643 snprintf(buf, bufsize, "i%d", SysInfo.dwProcessorType); in php_get_windows_cpu() 649 snprintf(buf, bufsize, "Alpha %d", SysInfo.wProcessorLevel); in php_get_windows_cpu() 655 snprintf(buf, bufsize, "IA64"); in php_get_windows_cpu() 659 snprintf(buf, bufsize, "IA32"); in php_get_windows_cpu() 664 snprintf(buf, bufsize, "AMD64"); in php_get_windows_cpu() 669 snprintf(buf, bufsize, "Unknown"); in php_get_windows_cpu() 748 snprintf(tmp_uname, sizeof(tmp_uname), "%d.%d.%d", in php_get_uname() 754 snprintf(tmp_uname, sizeof(tmp_uname), "libc-%d.%d.%d #%d", in php_get_uname() 779 snprintf(tmp_uname, sizeof(tmp_uname), "%s %s %s %s %s", in php_get_uname() [all …]
|
H A D | head.c | 130 …snprintf(cookie, len + 100, "Set-Cookie: %s=deleted; expires=%s; Max-Age=0", ZSTR_VAL(name), ZSTR_… in php_setcookie() 133 …snprintf(cookie, len + 100, "Set-Cookie: %s=%s", ZSTR_VAL(name), value ? ZSTR_VAL(encoded_value) :… in php_setcookie() 157 snprintf(tsdelta, sizeof(tsdelta), ZEND_LONG_FMT, (zend_long) diff); in php_setcookie()
|
H A D | http_fopen_wrapper.c | 555 if (snprintf(scratch, scratch_len, "Authorization: Basic %s\r\n", ZSTR_VAL(stmp)) > 0) { in php_stream_url_wrap_http_ex() 565 if (snprintf(scratch, scratch_len, "From: %s\r\n", FG(from_address)) > 0) in php_stream_url_wrap_http_ex() 573 if (snprintf(scratch, scratch_len, "Host: %s:%i\r\n", resource->host, resource->port) > 0) in php_stream_url_wrap_http_ex() 576 if (snprintf(scratch, scratch_len, "Host: %s\r\n", resource->host) > 0) { in php_stream_url_wrap_http_ex() 890 snprintf(loc_path, sizeof(loc_path) - 1, "%s%s", resource->path, location); in php_stream_url_wrap_http_ex() 892 snprintf(loc_path, sizeof(loc_path) - 1, "%s/%s", resource->path, location); in php_stream_url_wrap_http_ex() 895 snprintf(loc_path, sizeof(loc_path) - 1, "/%s", location); in php_stream_url_wrap_http_ex() 901 …snprintf(new_path, sizeof(new_path) - 1, "%s://%s:%d%s", resource->scheme, resource->host, resourc… in php_stream_url_wrap_http_ex() 903 … snprintf(new_path, sizeof(new_path) - 1, "%s://%s%s", resource->scheme, resource->host, loc_path); in php_stream_url_wrap_http_ex()
|
H A D | datetime.c | 67 snprintf(str, 80, "%s, %02d %s %04d %02d:%02d:%02d GMT", in php_std_date()
|
/PHP-7.0/ext/mysqlnd/ |
H A D | mysqlnd_debug.c | 77 snprintf(pid_buffer, sizeof(pid_buffer) - 1, "%5u: ", self->pid); in MYSQLND_METHOD() 87 snprintf(time_buffer, sizeof(time_buffer) - 1, in MYSQLND_METHOD() 98 snprintf(time_buffer, sizeof(time_buffer) - 1, in MYSQLND_METHOD() 110 snprintf(file_buffer, sizeof(file_buffer) - 1, "%14s: ", file); in MYSQLND_METHOD() 114 snprintf(line_buffer, sizeof(line_buffer) - 1, "%5u: ", line); in MYSQLND_METHOD() 118 snprintf(level_buffer, sizeof(level_buffer) - 1, "%4u: ", level); in MYSQLND_METHOD() 174 snprintf(pid_buffer, sizeof(pid_buffer) - 1, "%5u: ", self->pid); in MYSQLND_METHOD() 184 snprintf(time_buffer, sizeof(time_buffer) - 1, in MYSQLND_METHOD() 195 snprintf(time_buffer, sizeof(time_buffer) - 1, in MYSQLND_METHOD() 207 snprintf(file_buffer, sizeof(file_buffer) - 1, "%14s: ", file); in MYSQLND_METHOD() [all …]
|
H A D | php_mysqlnd.c | 64 snprintf(buf, sizeof(buf), "%s statistics", plugin_header->plugin_name); in mysqlnd_minfo_dump_plugin_stats() 140 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, MYSQLND_G(net_cmd_buffer_size)); in PHP_MINFO_FUNCTION() 142 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, MYSQLND_G(net_read_buffer_size)); in PHP_MINFO_FUNCTION() 144 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, MYSQLND_G(net_read_timeout)); in PHP_MINFO_FUNCTION()
|
/PHP-7.0/ext/opcache/ |
H A D | zend_accelerator_module.c | 484 snprintf(buf, sizeof(buf), "%pd", (zend_ulong)ZCSG(hits)); 490 snprintf(buf, sizeof(buf), "%pd", zend_shared_alloc_get_free_memory()); 492 snprintf(buf, sizeof(buf), "%pd", ZSMMG(wasted_shared_memory)); 495 snprintf(buf, sizeof(buf), "%pd", ZCSG(interned_strings_top) - ZCSG(interned_strings_start)); 497 snprintf(buf, sizeof(buf), "%pd", ZCSG(interned_strings_end) - ZCSG(interned_strings_top)); 500 snprintf(buf, sizeof(buf), "%ld", ZCSG(hash).num_direct_entries); 502 snprintf(buf, sizeof(buf), "%ld", ZCSG(hash).num_entries); 504 snprintf(buf, sizeof(buf), "%pd", ZCSG(hash).max_num_entries); 506 snprintf(buf, sizeof(buf), "%pd", ZCSG(oom_restarts)); 508 snprintf(buf, sizeof(buf), "%pd", ZCSG(hash_restarts)); [all …]
|
/PHP-7.0/ext/standard/tests/general_functions/ |
H A D | 008.phpt | 7 // this checks f,g,G conversion for snprintf/spprintf
|
/PHP-7.0/Zend/ |
H A D | zend_long.h | 75 int st = snprintf((s), (len), ZEND_LONG_FMT, (i)); \ 98 int st = snprintf((s), (len), ZEND_LONG_FMT, (i)); \
|
H A D | zend_config.w32.h | 51 #define snprintf _snprintf macro
|
/PHP-7.0/ext/gd/libgd/ |
H A D | gdtest.c | 59 snprintf (of, sizeof(of), "%s.png", argv[1]); in main() 91 snprintf (of, sizeof(of), "%s.gd2", argv[1]); in main() 126 snprintf (of, sizeof(of), "%s.gd", argv[1]); in main() 183 snprintf (of, sizeof(of), "%s.snk", argv[1]); in main()
|
/PHP-7.0/ext/com_dotnet/ |
H A D | com_dotnet.c | 208 snprintf(buf, sizeof(buf), "Failed to init .Net runtime [%s] %s", where, err); in PHP_FUNCTION() 222 snprintf(buf, sizeof(buf), "Failed to re-init .Net domain [%s] %s", where, err); in PHP_FUNCTION() 235 snprintf(buf, sizeof(buf), "Failed to re-init .Net domain [%s] %s", where, err); in PHP_FUNCTION() 317 snprintf(buf, sizeof(buf), "Failed to instantiate .Net object [%s] [0x%08x] %s", where, hr, err); in PHP_FUNCTION()
|
/PHP-7.0/sapi/apache2handler/ |
H A D | php_functions.c | 403 snprintf(tmp, sizeof(tmp), "%d", MODULE_MAGIC_NUMBER); in PHP_MINFO_FUNCTION() 410 snprintf(tmp, sizeof(tmp), "%s:%u", serv->server_hostname, serv->port); in PHP_MINFO_FUNCTION() 415 …snprintf(tmp, sizeof(tmp), "%s(%d)/%d", ap_unixd_config.user_name, ap_unixd_config.user_id, ap_uni… in PHP_MINFO_FUNCTION() 417 …snprintf(tmp, sizeof(tmp), "%s(%d)/%d", unixd_config.user_name, unixd_config.user_id, unixd_config… in PHP_MINFO_FUNCTION() 423 …snprintf(tmp, sizeof(tmp), "Per Child: %d - Keep Alive: %s - Max Per Connection: %d", max_requests… in PHP_MINFO_FUNCTION()
|
/PHP-7.0/ext/calendar/ |
H A D | calendar.c | 413 snprintf(date, sizeof(date), "%i/%i/%i", month, day, year); in PHP_FUNCTION() 456 snprintf(date, sizeof(date), "%i/%i/%i", month, day, year); in PHP_FUNCTION() 489 snprintf(date, sizeof(date), "%i/%i/%i", month, day, year); in PHP_FUNCTION() 620 snprintf(date, sizeof(date), "%i/%i/%i", month, day, year); in PHP_FUNCTION() 628 …snprintf(hebdate, sizeof(hebdate), "%s %s %s", heb_number_to_chars(day, fl, &dayp), JEWISH_HEB_MON… in PHP_FUNCTION() 670 snprintf(date, sizeof(date), "%i/%i/%i", month, day, year); in PHP_FUNCTION()
|
/PHP-7.0/win32/ |
H A D | sendmail.c | 68 …snprintf(*error_message, sizeof(SMTP_ERROR_RESPONSE_SPEC) + strlen(response), SMTP_ERROR_RESPONSE_… 299 snprintf(*error_message, HOST_NAME_LEN + 128, in TSendMail() 412 snprintf(PW32G(mail_buffer), sizeof(PW32G(mail_buffer)), "HELO %s\r\n", PW32G(mail_local_host)); in SendText() 720 snprintf(header_buffer, MAIL_BUFFER_SIZE, "Date: %s\r\n", ZSTR_VAL(dt)); in PostHeader() 1015 result = snprintf(Buf, MAIL_BUFFER_SIZE, FormatString , tmpAddress1+1); in FormatEmailAddress() 1019 return snprintf(Buf, MAIL_BUFFER_SIZE , FormatString , EmailAddress ); in FormatEmailAddress()
|
/PHP-7.0/sapi/phpdbg/ |
H A D | phpdbg_io.c | 293 snprintf(port_buf, 7, "%u", port); 306 wrote = snprintf(buf, 128, "Could not translate address '%s'", addr); 316 wrote = snprintf(buf, 256, "Host '%s' not found. %s", addr, estrdup(gai_strerror(rc)));
|