/PHP-7.3/ext/xmlrpc/libxmlrpc/ |
H A D | xml_to_soap.c | 89 char buf[128], *p; in parse_array_type_info() local 90 snprintf(buf, sizeof(buf), "%s", array_type); in parse_array_type_info() 91 p = strchr(buf, '['); in parse_array_type_info() 364 XMLRPC_SetValueBase64(xCurrent, buf.data, buf.offset); in xml_element_to_SOAP_REQUEST_worker() 365 buffer_delete(&buf); in xml_element_to_SOAP_REQUEST_worker() 436 char buf[BUF_SIZE]; in SOAP_to_xml_element_worker() local 456 snprintf(buf, sizeof(buf), "%s[%i]", type, XMLRPC_VectorSize(node)); in SOAP_to_xml_element_worker() 530 simplestring_addn(&elem_val->text, buf.data, buf.offset ); in SOAP_to_xml_element_worker() 531 buffer_delete(&buf); in SOAP_to_xml_element_worker() 627 char buf[128]; in SOAP_REQUEST_to_xml_element() local [all …]
|
H A D | xml_to_dandarpc.c | 103 struct buffer_st buf; in xml_element_to_DANDARPC_REQUEST_worker() local 104 base64_decode_xmlrpc(&buf, el->text.str, el->text.len); in xml_element_to_DANDARPC_REQUEST_worker() 105 XMLRPC_SetValueBase64(xCurrent, buf.data, buf.offset); in xml_element_to_DANDARPC_REQUEST_worker() 106 buffer_delete(&buf); in xml_element_to_DANDARPC_REQUEST_worker() 172 char buf[BUF_SIZE]; in DANDARPC_to_xml_element_worker() local 207 simplestring_add(&elem_val->text, buf); in DANDARPC_to_xml_element_worker() 212 simplestring_add(&elem_val->text, buf); in DANDARPC_to_xml_element_worker() 217 simplestring_add(&elem_val->text, buf); in DANDARPC_to_xml_element_worker() 225 struct buffer_st buf; in DANDARPC_to_xml_element_worker() local 228 simplestring_addn(&elem_val->text, buf.data, buf.offset ); in DANDARPC_to_xml_element_worker() [all …]
|
/PHP-7.3/ext/fileinfo/libmagic/ |
H A D | compress.c | 260 buf = CAST(const char *, buf) + rv; in swrite() 329 buf = CAST(char *, CCAST(void *, buf)) + rv; in sread() 340 char buf[4096]; in file_pipe2file() local 344 (void)strlcpy(buf, "/tmp/file.XXXXXX", sizeof buf); in file_pipe2file() 356 tfd = mkstemp(buf); in file_pipe2file() 358 (void)unlink(buf); in file_pipe2file() 371 while ((r = sread(fd, buf, sizeof(buf), 1)) > 0) in file_pipe2file() 502 *buf = NULL; in makeerror() 580 char *buf; in filter_error() local 583 buf = (char *)ubuf; in filter_error() [all …]
|
H A D | cdf_time.c | 170 cdf_ctime(const time_t *sec, char *buf) in cdf_ctime() argument 172 char *ptr = php_ctime_r(sec, buf); in cdf_ctime() 174 return buf; in cdf_ctime() 175 (void)snprintf(buf, 26, "*Bad* %#16.16" INT64_T_FORMAT "x\n", in cdf_ctime() 177 return buf; in cdf_ctime() 186 char buf[25]; in main() local 192 p = cdf_ctime(&ts.tv_sec, buf); in main()
|
/PHP-7.3/ext/gd/libgd/ |
H A D | gd_io_ss.c | 45 static int sinkPutbuf (gdIOCtx * ctx, const void *buf, int size); 79 static int sourceGetbuf (gdIOCtx * ctx, void *buf, int size) in sourceGetbuf() argument 86 res = ((lctx->src->source) (lctx->src->context, buf, size)); in sourceGetbuf() 105 unsigned char buf; in sourceGetchar() local 107 res = sourceGetbuf (ctx, &buf, 1); in sourceGetchar() 110 return buf; in sourceGetchar() 116 static int sinkPutbuf (gdIOCtx * ctx, const void *buf, int size) in sinkPutbuf() argument 123 res = (lctx->snk->sink) (lctx->snk->context, buf, size); in sinkPutbuf()
|
H A D | gd_color_match.c | 17 unsigned long *buf; /* stores our calculations */ in gdImageColorMatch() local 36 buf = (unsigned long *)safe_emalloc(sizeof(unsigned long), 5 * gdMaxColors, 0); in gdImageColorMatch() 37 memset( buf, 0, sizeof(unsigned long) * 5 * gdMaxColors ); in gdImageColorMatch() 43 bp = buf + (color * 5); in gdImageColorMatch() 51 bp = buf; in gdImageColorMatch() 63 gdFree(buf); in gdImageColorMatch()
|
/PHP-7.3/ext/dba/ |
H A D | dba_cdb.c | 138 # define php_cdb_read(cdb, buf, len, pos) cdb_read(cdb, buf, len, pos) argument 142 # define php_cdb_read(cdb, buf, len, pos) cdb_read(cdb, buf, len, pos) argument 213 # define cdb_file_read(fildes, buf, size) php_stream_read(fildes, buf, size) argument 215 # define cdb_file_read(fildes, buf, size) read(fildes, buf, size) argument 247 char buf[8]; in DBA_FIRSTKEY_FUNC() local 260 uint32_unpack(buf, &cdb->eod); in DBA_FIRSTKEY_FUNC() 266 uint32_unpack(buf, &klen); in DBA_FIRSTKEY_FUNC() 267 uint32_unpack(buf + 4, &dlen); in DBA_FIRSTKEY_FUNC() 288 char buf[8]; in DBA_NEXTKEY_FUNC() local 298 uint32_unpack(buf, &klen); in DBA_NEXTKEY_FUNC() [all …]
|
/PHP-7.3/ext/filter/ |
H A D | sanitizing_filters.c | 114 zend_string *buf; in php_filter_strip() local 134 ZSTR_VAL(buf)[c] = '\0'; in php_filter_strip() local 135 ZSTR_LEN(buf) = c; in php_filter_strip() 137 ZVAL_NEW_STR(value, buf); in php_filter_strip() 161 zend_string *buf; in filter_map_apply() local 173 ZSTR_VAL(buf)[c] = '\0'; in filter_map_apply() local 174 ZSTR_LEN(buf) = c; in filter_map_apply() 258 zend_string *buf; in php_filter_full_special_chars() local 268 ZVAL_STR(value, buf); in php_filter_full_special_chars() 374 zend_string *buf; in php_filter_add_slashes() local [all …]
|
/PHP-7.3/ext/ftp/tests/ |
H A D | server.inc | 58 var_dump($buf); 94 $buf = fread($s, 2048); 103 dump_and_exit($buf); 120 dump_and_exit($buf); 128 dump_and_exit($buf); 141 dump_and_exit($buf); 158 dump_and_exit($buf); 172 user_auth($buf); 287 var_dump($buf); 334 var_dump($buf); [all …]
|
/PHP-7.3/Zend/ |
H A D | zend_smart_string.h | 94 char buf[32]; in smart_string_append_long_ex() local 95 char *result = zend_print_long_to_buf(buf + sizeof(buf) - 1, num); in smart_string_append_long_ex() 96 smart_string_appendl_ex(dest, result, buf + sizeof(buf) - 1 - result, persistent); in smart_string_append_long_ex() 100 char buf[32]; in smart_string_append_unsigned_ex() local 101 char *result = zend_print_ulong_to_buf(buf + sizeof(buf) - 1, num); in smart_string_append_unsigned_ex() 102 smart_string_appendl_ex(dest, result, buf + sizeof(buf) - 1 - result, persistent); in smart_string_append_unsigned_ex()
|
H A D | zend_smart_str.h | 136 char buf[32]; in smart_str_append_long_ex() local 137 char *result = zend_print_long_to_buf(buf + sizeof(buf) - 1, num); in smart_str_append_long_ex() 138 smart_str_appendl_ex(dest, result, buf + sizeof(buf) - 1 - result, persistent); in smart_str_append_long_ex() 142 char buf[32]; in smart_str_append_unsigned_ex() local 143 char *result = zend_print_ulong_to_buf(buf + sizeof(buf) - 1, num); in smart_str_append_unsigned_ex() 144 smart_str_appendl_ex(dest, result, buf + sizeof(buf) - 1 - result, persistent); in smart_str_append_unsigned_ex()
|
/PHP-7.3/sapi/fpm/fpm/ |
H A D | fpm_trace_pread.c | 36 char buf[128]; in fpm_trace_ready() local 38 sprintf(buf, "/proc/%d/" PROC_MEM_FILE, (int) pid); in fpm_trace_ready() 39 mem_file = open(buf, O_RDONLY); in fpm_trace_ready() 41 zlog(ZLOG_SYSERROR, "failed to open %s", buf); in fpm_trace_ready()
|
H A D | fpm_trace.c | 9 int fpm_trace_get_strz(char *buf, size_t sz, long addr) /* {{{ */ in fpm_trace_get_strz() argument 24 *buf++ = lc[i]; in fpm_trace_get_strz() 27 *buf = '\0'; in fpm_trace_get_strz()
|
/PHP-7.3/main/ |
H A D | snprintf.h | 79 PHPAPI int ap_php_slprintf(char *buf, size_t len, const char *format,...) ZEND_ATTRIBUTE_FORMAT(pri… 80 PHPAPI int ap_php_vslprintf(char *buf, size_t len, const char *format, va_list ap); 83 PHPAPI int ap_php_vasprintf(char **buf, const char *format, va_list ap); 84 PHPAPI int ap_php_asprintf(char **buf, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 2, 3); 86 PHPAPI char * php_gcvt(double value, int ndigit, char dec_point, char exponent, char *buf); 87 PHPAPI char * php_0cvt(double value, int ndigit, char dec_point, char exponent, char *buf); 89 boolean_e add_dp, int precision, char dec_point, bool_int * is_negative, char *buf, size_t *len);
|
H A D | php_memory_streams.h | 33 #define php_stream_memory_open(mode, buf, length) _php_stream_memory_open((mode), (buf), (length) S… argument 40 …p_stream_temp_open(mode, max_memory_usage, buf, length) _php_stream_temp_open((mode), (max_memory_… argument 45 PHPAPI php_stream *_php_stream_memory_open(int mode, char *buf, size_t length STREAMS_DC); 50 PHPAPI php_stream *_php_stream_temp_open(int mode, size_t max_memory_usage, char *buf, size_t lengt…
|
H A D | snprintf.c | 157 return (buf); in php_gcvt() 160 dst = buf; in php_gcvt() 235 return (buf); in php_gcvt() 404 return (buf); in php_conv_fp() 468 *len = s - buf; in php_conv_fp() 470 return (buf); in php_conv_fp() 1270 buf[cc] = '\0'; in ap_php_slprintf() 1283 buf[cc] = '\0'; in ap_php_vslprintf() 1319 *buf = NULL; in ap_php_vasprintf() 1324 free(*buf); in ap_php_vasprintf() [all …]
|
/PHP-7.3/ext/mysqlnd/ |
H A D | php_mysqlnd.c | 60 char buf[64]; in mysqlnd_minfo_dump_plugin_stats() local 62 snprintf(buf, sizeof(buf), "%s statistics", plugin_header->plugin_name); in mysqlnd_minfo_dump_plugin_stats() 67 php_info_print_table_header(2, buf, ""); in mysqlnd_minfo_dump_plugin_stats() 79 mysqlnd_minfo_dump_loaded_plugins(zval *el, void * buf) in mysqlnd_minfo_dump_loaded_plugins() argument 81 smart_str * buffer = (smart_str *) buf; in mysqlnd_minfo_dump_loaded_plugins() 115 char buf[32]; in PHP_MINFO_FUNCTION() local 138 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, MYSQLND_G(net_cmd_buffer_size)); in PHP_MINFO_FUNCTION() 140 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, MYSQLND_G(net_read_buffer_size)); in PHP_MINFO_FUNCTION() 141 php_info_print_table_row(2, "Read buffer size", buf); in PHP_MINFO_FUNCTION() 142 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, MYSQLND_G(net_read_timeout)); in PHP_MINFO_FUNCTION() [all …]
|
/PHP-7.3/ext/interbase/ |
H A D | ibase_service.c | 157 buf[0] = operation; in _php_ibase_user() 161 int chunk = slprintf(&buf[spb_len], sizeof(buf) - spb_len, "%c%c%c%s", in _php_ibase_user() 212 char buf[128], *host, *user, *pass, *loc; in PHP_FUNCTION() local 224 spb_len = slprintf(buf, sizeof(buf), "%c%c%c%c%s%c%c%s" "%s:service_mgr", in PHP_FUNCTION() 426 char *db, *bk, buf[200]; in _php_ibase_backup_restore() local 443 spb_len = slprintf(buf, sizeof(buf), "%c%c%c%c%s%c%c%c%s%c%c%c%c%c", in _php_ibase_backup_restore() 449 buf[spb_len++] = isc_spb_verbose; in _php_ibase_backup_restore() 452 if (spb_len > sizeof(buf) || spb_len <= 0) { in _php_ibase_backup_restore() 490 char buf[128], *db; in _php_ibase_service_action() local 546 spb_len = slprintf(buf, sizeof(buf), "%c%c%c%c%s%c%c%c%c%c", in _php_ibase_service_action() [all …]
|
/PHP-7.3/ext/opcache/ |
H A D | zend_file_cache.c | 289 func(&p->val, script, info, buf); 824 void *mem, *buf; local 854 mem = buf = emalloc(script->size); 875 vec[1].iov_base = buf; 942 func(&p->val, script, buf); 1337 script->mem = buf; 1358 void *mem, *checkpoint, *buf; local 1484 buf = (void*)(((zend_uintptr_t)buf + 63L) & ~63L); 1489 if (!buf) { 1494 memcpy(buf, mem, info.mem_size); [all …]
|
H A D | zend_accelerator_module.c | 256 zend_stat_t buf; local 481 char buf[32]; local 484 snprintf(buf, sizeof(buf), ZEND_ULONG_FMT, ZCSG(hits)); 490 snprintf(buf, sizeof(buf), "%zu", zend_shared_alloc_get_free_memory()); 492 snprintf(buf, sizeof(buf), "%zu", ZSMMG(wasted_shared_memory)); 500 snprintf(buf, sizeof(buf), "%" PRIu32, ZCSG(hash).num_direct_entries); 502 snprintf(buf, sizeof(buf), "%" PRIu32, ZCSG(hash).num_entries); 504 snprintf(buf, sizeof(buf), "%" PRIu32, ZCSG(hash).max_num_entries); 506 snprintf(buf, sizeof(buf), ZEND_ULONG_FMT, ZCSG(oom_restarts)); 508 snprintf(buf, sizeof(buf), ZEND_ULONG_FMT, ZCSG(hash_restarts)); [all …]
|
H A D | zend_accelerator_blacklist.c | 252 if (VCWD_REALPATH(filename, buf)) { in zend_accel_blacklist_loadone() 253 blacklist_path_length = zend_dirname(buf, strlen(buf)); in zend_accel_blacklist_loadone() 254 blacklist_path = zend_strndup(buf, blacklist_path_length); in zend_accel_blacklist_loadone() 257 memset(buf, 0, sizeof(buf)); in zend_accel_blacklist_loadone() 260 while (fgets(buf, MAXPATHLEN, fp) != NULL) { in zend_accel_blacklist_loadone() 262 path_length = strlen(buf); in zend_accel_blacklist_loadone() 263 if (path_length > 0 && buf[path_length - 1] == '\n') { in zend_accel_blacklist_loadone() 264 buf[--path_length] = 0; in zend_accel_blacklist_loadone() 265 if (path_length > 0 && buf[path_length - 1] == '\r') { in zend_accel_blacklist_loadone() 266 buf[--path_length] = 0; in zend_accel_blacklist_loadone() [all …]
|
/PHP-7.3/ext/mbstring/oniguruma/src/ |
H A D | regerror.c | 208 UChar buf[], int buf_size, int *is_over) in to_ascii() argument 225 sprint_byte_with_x((char*)(&(buf[len])), (unsigned int)(code >> 24)); in to_ascii() 228 sprint_byte((char*)(&(buf[len+8])), (unsigned int)code); in to_ascii() 232 sprint_byte_with_x((char*)(&(buf[len])), (unsigned int)(code >> 8)); in to_ascii() 233 sprint_byte((char*)(&(buf[len+4])), (unsigned int)code); in to_ascii() 241 buf[len++] = (UChar )code; in to_ascii() 252 xmemcpy(buf, s, (size_t )len); in to_ascii() 340 void onig_snprintf_with_pattern(UChar buf[], int bufsize, OnigEncoding enc, in onig_snprintf_with_pattern() argument 349 n = xvsnprintf((char* )buf, bufsize, (const char* )fmt, args); in onig_snprintf_with_pattern() 355 xstrcat((char* )buf, ": /", bufsize); in onig_snprintf_with_pattern() [all …]
|
H A D | regposerr.c | 82 regerror(int posix_ecode, const regex_t* reg ARG_UNUSED, char* buf, in regerror() argument 103 if (buf != NULL && size > 0) { in regerror() 104 xstrncpy(buf, s, size - 1); in regerror() 105 buf[size - 1] = '\0'; in regerror()
|
/PHP-7.3/ext/com_dotnet/ |
H A D | com_dotnet.c | 205 char buf[1024]; in PHP_FUNCTION() local 207 snprintf(buf, sizeof(buf), "Failed to init .Net runtime [%s] %s", where, err); in PHP_FUNCTION() 210 php_com_throw_exception(hr, buf); in PHP_FUNCTION() 219 char buf[1024]; in PHP_FUNCTION() local 221 snprintf(buf, sizeof(buf), "Failed to re-init .Net domain [%s] %s", where, err); in PHP_FUNCTION() 224 php_com_throw_exception(hr, buf); in PHP_FUNCTION() 232 char buf[1024]; in PHP_FUNCTION() local 234 snprintf(buf, sizeof(buf), "Failed to re-init .Net domain [%s] %s", where, err); in PHP_FUNCTION() 315 char buf[1024]; in PHP_FUNCTION() local 317 snprintf(buf, sizeof(buf), "Failed to instantiate .Net object [%s] [0x%08x] %s", where, hr, err); in PHP_FUNCTION() [all …]
|
/PHP-7.3/ext/standard/ |
H A D | html.c | 477 buf[0] = k; in php_utf32_utf8() 508 buf[0] = k; in php_mb2_int_to_char() 526 buf[0] = k; in php_mb3_int_to_char() 797 (*buf)++; in process_numeric_entity() 835 while ((**buf >= 'a' && **buf <= 'z') || in process_named_entity_html() 836 (**buf >= 'A' && **buf <= 'Z') || in process_named_entity_html() 837 (**buf >= '0' && **buf <= '9')) { in process_named_entity_html() 838 (*buf)++; in process_named_entity_html() 890 *buf = code; in write_octet_sequence() 906 *buf = code; in write_octet_sequence() [all …]
|