Home
last modified time | relevance | path

Searched refs:buf (Results 26 – 50 of 313) sorted by relevance

12345678910>>...13

/PHP-7.4/ext/xmlrpc/libxmlrpc/
H A Dxml_to_soap.c87 char buf[128], *p; in parse_array_type_info() local
88 snprintf(buf, sizeof(buf), "%s", array_type); in parse_array_type_info()
89 p = strchr(buf, '['); in parse_array_type_info()
362 XMLRPC_SetValueBase64(xCurrent, buf.data, buf.offset); in xml_element_to_SOAP_REQUEST_worker()
363 buffer_delete(&buf); in xml_element_to_SOAP_REQUEST_worker()
434 char buf[BUF_SIZE]; in SOAP_to_xml_element_worker() local
454 snprintf(buf, sizeof(buf), "%s[%i]", type, XMLRPC_VectorSize(node)); in SOAP_to_xml_element_worker()
528 simplestring_addn(&elem_val->text, buf.data, buf.offset ); in SOAP_to_xml_element_worker()
529 buffer_delete(&buf); in SOAP_to_xml_element_worker()
625 char buf[128]; in SOAP_REQUEST_to_xml_element() local
[all …]
H A Dxml_to_dandarpc.c103 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 …]
H A Dxml_to_xmlrpc.c136 struct buffer_st buf; in xml_element_to_XMLRPC_REQUEST_worker() local
137 base64_decode_xmlrpc(&buf, el->text.str, el->text.len); in xml_element_to_XMLRPC_REQUEST_worker()
138 XMLRPC_SetValueBase64(current_val, buf.data, buf.offset); in xml_element_to_XMLRPC_REQUEST_worker()
139 buffer_delete(&buf); in xml_element_to_XMLRPC_REQUEST_worker()
189 char buf[BUF_SIZE]; in XMLRPC_to_xml_element_worker() local
217 simplestring_add(&elem_val->text, buf); in XMLRPC_to_xml_element_worker()
222 simplestring_add(&elem_val->text, buf); in XMLRPC_to_xml_element_worker()
228 simplestring_add(&elem_val->text, buf); in XMLRPC_to_xml_element_worker()
237 struct buffer_st buf; in XMLRPC_to_xml_element_worker() local
240 simplestring_addn(&elem_val->text, buf.data, buf.offset ); in XMLRPC_to_xml_element_worker()
[all …]
/PHP-7.4/win32/
H A Dioutil.c493 if (!buf) { in php_win32_ioutil_getcwd_w()
509 buf = tmp_buf; in php_win32_ioutil_getcwd_w()
519 return (wchar_t *)buf; in php_win32_ioutil_getcwd_w()
639 *buf = tmp; in php_win32_ioutil_normalize_path_w()
877 buf->st_dev = _buf.st_dev; in php_win32_ioutil_fstat_int()
878 buf->st_ino = _buf.st_ino; in php_win32_ioutil_fstat_int()
881 buf->st_uid = _buf.st_uid; in php_win32_ioutil_fstat_int()
921 buf->st_rdev = buf->st_uid = buf->st_gid = 0; in php_win32_ioutil_fstat_int()
925 buf->st_mode = 0; in php_win32_ioutil_fstat_int()
1007 buf->st_mode = S_IFLNK; in php_win32_ioutil_stat_ex_w()
[all …]
/PHP-7.4/ext/dba/
H A Ddba_cdb.c138 # 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.4/main/
H A Dsnprintf.h79 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);
85 PHPAPI char * php_gcvt(double value, int ndigit, char dec_point, char exponent, char *buf);
86 PHPAPI char * php_0cvt(double value, int ndigit, char dec_point, char exponent, char *buf);
88 boolean_e add_dp, int precision, char dec_point, bool_int * is_negative, char *buf, size_t *len);
H A Dphp_memory_streams.h33 #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 Dsnprintf.c153 return (buf); in php_gcvt()
156 dst = buf; in php_gcvt()
230 return (buf); in php_gcvt()
399 return (buf); in php_conv_fp()
463 *len = s - buf; in php_conv_fp()
465 return (buf); in php_conv_fp()
1259 buf[cc] = '\0'; in ap_php_slprintf()
1272 buf[cc] = '\0'; in ap_php_vslprintf()
1308 *buf = NULL; in ap_php_vasprintf()
1313 free(*buf); in ap_php_vasprintf()
[all …]
/PHP-7.4/ext/fileinfo/libmagic/
H A Dder.c213 strlcpy(buf, der__tag[tag], len); in der_tag()
215 snprintf(buf, len, "%#x", tag); in der_tag()
216 return buf; in der_tag()
284 char buf[128]; in der_cmp() local
294 der_tag(buf, sizeof(buf), tag); in der_cmp()
297 buf, s); in der_cmp()
298 size_t slen = strlen(buf); in der_cmp()
300 if (strncmp(buf, s, slen) != 0) in der_cmp()
330 der_data(buf, sizeof(buf), tag, b + offs, tlen); in der_cmp()
364 char buf[128]; in printdata() local
[all …]
H A Dcdf_time.c170 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.4/sapi/fpm/fpm/
H A Dfpm_trace_pread.c36 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 Dfpm_trace.c9 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.4/Zend/
H A Dzend_smart_string.h94 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 Dzend_smart_str.h136 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.4/ext/ftp/tests/
H A Dserver.inc58 var_dump($buf);
94 $buf = fread($s, 2048);
103 dump_and_exit($buf);
121 dump_and_exit($buf);
129 dump_and_exit($buf);
142 dump_and_exit($buf);
159 dump_and_exit($buf);
173 user_auth($buf);
292 var_dump($buf);
339 var_dump($buf);
[all …]
/PHP-7.4/ext/opcache/
H A Dzend_file_cache.c291 func(&p->val, script, info, buf);
895 void *mem, *buf; local
925 mem = buf = emalloc(script->size);
954 vec[1].iov_base = buf;
1021 func(&p->val, script, buf);
1505 script->mem = buf;
1526 void *mem, *checkpoint, *buf; local
1652 buf = (void*)(((zend_uintptr_t)buf + 63L) & ~63L);
1657 if (!buf) {
1662 memcpy(buf, mem, info.mem_size);
[all …]
H A Dzend_accelerator_module.c255 zend_stat_t buf; local
471 char buf[32]; local
474 snprintf(buf, sizeof(buf), ZEND_ULONG_FMT, ZCSG(hits));
480 snprintf(buf, sizeof(buf), "%zu", zend_shared_alloc_get_free_memory());
482 snprintf(buf, sizeof(buf), "%zu", ZSMMG(wasted_shared_memory));
490 snprintf(buf, sizeof(buf), "%" PRIu32, ZCSG(hash).num_direct_entries);
492 snprintf(buf, sizeof(buf), "%" PRIu32, ZCSG(hash).num_entries);
494 snprintf(buf, sizeof(buf), "%" PRIu32, ZCSG(hash).max_num_entries);
496 snprintf(buf, sizeof(buf), ZEND_ULONG_FMT, ZCSG(oom_restarts));
498 snprintf(buf, sizeof(buf), ZEND_ULONG_FMT, ZCSG(hash_restarts));
[all …]
H A Dzend_accelerator_blacklist.c250 if (VCWD_REALPATH(filename, buf)) { in zend_accel_blacklist_loadone()
251 blacklist_path_length = zend_dirname(buf, strlen(buf)); in zend_accel_blacklist_loadone()
252 blacklist_path = zend_strndup(buf, blacklist_path_length); in zend_accel_blacklist_loadone()
255 memset(buf, 0, sizeof(buf)); in zend_accel_blacklist_loadone()
258 while (fgets(buf, MAXPATHLEN, fp) != NULL) { in zend_accel_blacklist_loadone()
260 path_length = strlen(buf); in zend_accel_blacklist_loadone()
261 if (path_length > 0 && buf[path_length - 1] == '\n') { in zend_accel_blacklist_loadone()
262 buf[--path_length] = 0; in zend_accel_blacklist_loadone()
263 if (path_length > 0 && buf[path_length - 1] == '\r') { in zend_accel_blacklist_loadone()
264 buf[--path_length] = 0; in zend_accel_blacklist_loadone()
[all …]
/PHP-7.4/ext/ffi/tests/
H A D036.phpt13 //$buf = FFI::new("int*[1]"); /* this loses type and crash */
14 $buf = FFI::new(FFI::arrayType($type, [1]));
15 $buf[0] = $ptr;
17 return $buf[0];
H A D037.phpt10 $buf = FFI::new("int*[1]");
11 $buf[0] = $ptr;
13 return $buf[0];
/PHP-7.4/ext/com_dotnet/
H A Dcom_dotnet.c205 char buf[1024]; in PHP_FUNCTION() local
207 snprintf(buf, sizeof(buf), "Failed to init .Net runtime [%s] %s", where, err); in PHP_FUNCTION()
209 php_com_throw_exception(hr, buf); in PHP_FUNCTION()
218 char buf[1024]; in PHP_FUNCTION() local
220 snprintf(buf, sizeof(buf), "Failed to re-init .Net domain [%s] %s", where, err); in PHP_FUNCTION()
222 php_com_throw_exception(hr, buf); in PHP_FUNCTION()
230 char buf[1024]; in PHP_FUNCTION() local
232 snprintf(buf, sizeof(buf), "Failed to re-init .Net domain [%s] %s", where, err); in PHP_FUNCTION()
312 char buf[1024]; in PHP_FUNCTION() local
314 snprintf(buf, sizeof(buf), "Failed to instantiate .Net object [%s] [0x%08x] %s", where, hr, err); in PHP_FUNCTION()
[all …]
/PHP-7.4/ext/gd/libgd/
H A Dgd_io.c36 unsigned char buf[2]; in Putword() local
38 buf[0] = w & 0xff; in Putword()
39 buf[1] = (w / 256) & 0xff; in Putword()
40 (ctx->putBuf) (ctx, (char *) buf, 2); in Putword()
181 int gdPutBuf (const void *buf, int size, gdIOCtx * ctx) in gdPutBuf() argument
184 return (ctx->putBuf) (ctx, buf, size); in gdPutBuf()
188 int gdGetBuf (void *buf, int size, gdIOCtx * ctx) in gdGetBuf() argument
190 return (ctx->getBuf) (ctx, buf, size); in gdGetBuf()
/PHP-7.4/ext/mysqlnd/
H A Dphp_mysqlnd.c56 mysqlnd_minfo_dump_loaded_plugins(zval *el, void * buf) in mysqlnd_minfo_dump_loaded_plugins() argument
58 smart_str * buffer = (smart_str *) buf; in mysqlnd_minfo_dump_loaded_plugins()
92 char buf[32]; in PHP_MINFO_FUNCTION() local
115 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, MYSQLND_G(net_cmd_buffer_size)); in PHP_MINFO_FUNCTION()
116 php_info_print_table_row(2, "Command buffer size", buf); in PHP_MINFO_FUNCTION()
117 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, MYSQLND_G(net_read_buffer_size)); in PHP_MINFO_FUNCTION()
118 php_info_print_table_row(2, "Read buffer size", buf); in PHP_MINFO_FUNCTION()
119 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, MYSQLND_G(net_read_timeout)); in PHP_MINFO_FUNCTION()
120 php_info_print_table_row(2, "Read timeout", buf); in PHP_MINFO_FUNCTION()
/PHP-7.4/ext/phar/
H A Dtar.c31 while (i < len && buf[i] >= '0' && buf[i] <= '7') { in phar_tar_number()
67 char *p = buf; in phar_tar_octal()
92 while (buf != end) { in phar_tar_checksum()
94 ++buf; in phar_tar_checksum()
231 read = php_stream_read(fp, buf, sizeof(buf)); in phar_parse_tarfile()
268 if (sum1 == 0 && phar_tar_checksum(buf, sizeof(buf)) == 0) { in phar_parse_tarfile()
347 read = php_stream_read(fp, buf, sizeof(buf)); in phar_parse_tarfile()
361 if (sum1 == 0 && phar_tar_checksum(buf, sizeof(buf)) == 0) { in phar_parse_tarfile()
415 read = php_stream_read(fp, buf, sizeof(buf)); in phar_parse_tarfile()
602 read = php_stream_read(fp, buf, sizeof(buf)); in phar_parse_tarfile()
[all …]
/PHP-7.4/ext/pdo_odbc/
H A Dodbc_stmt.c165 char *buf = NULL; in odbc_stmt_execute() local
209 if (buf) { in odbc_stmt_execute()
225 if (buf) { in odbc_stmt_execute()
226 efree(buf); in odbc_stmt_execute()
246 if (buf) { in odbc_stmt_execute()
247 efree(buf); in odbc_stmt_execute()
661 char *buf; in odbc_stmt_get_col() local
711 buf = erealloc(buf, used + 255+1); in odbc_stmt_get_col()
715 buf = erealloc(buf, used + C->fetched_len+1); in odbc_stmt_get_col()
730 *ptr = buf; in odbc_stmt_get_col()
[all …]

Completed in 74 milliseconds

12345678910>>...13