/PHP-7.3/ext/zip/lib/ |
H A D | zip_error_to_str.c | 44 zip_error_to_str(char *buf, zip_uint64_t len, int ze, int se) in zip_error_to_str() argument 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()
|
H A D | zip_filerange_crc.c | 44 Bytef buf[BUFSIZE]; in _zip_filerange_crc() local 61 if ((n = zip_source_read(src, buf, (zip_uint64_t)n)) < 0) { in _zip_filerange_crc() 70 *crcp = crc32(*crcp, buf, (uInt)n); in _zip_filerange_crc()
|
H A D | zip_error_strerror.c | 46 char buf[128], *s; in zip_error_strerror() local 51 sprintf(buf, "Unknown error %d", err->zip_err); in zip_error_strerror() 53 ss = buf; in zip_error_strerror()
|
/PHP-7.3/ext/xmlrpc/libxmlrpc/ |
H A D | xml_to_xmlrpc.c | 138 struct buffer_st buf; in xml_element_to_XMLRPC_REQUEST_worker() local 139 base64_decode_xmlrpc(&buf, el->text.str, el->text.len); in xml_element_to_XMLRPC_REQUEST_worker() 140 XMLRPC_SetValueBase64(current_val, buf.data, buf.offset); in xml_element_to_XMLRPC_REQUEST_worker() 141 buffer_delete(&buf); in xml_element_to_XMLRPC_REQUEST_worker() 191 char buf[BUF_SIZE]; in XMLRPC_to_xml_element_worker() local 219 simplestring_add(&elem_val->text, buf); in XMLRPC_to_xml_element_worker() 224 simplestring_add(&elem_val->text, buf); in XMLRPC_to_xml_element_worker() 230 simplestring_add(&elem_val->text, buf); in XMLRPC_to_xml_element_worker() 239 struct buffer_st buf; in XMLRPC_to_xml_element_worker() local 242 simplestring_addn(&elem_val->text, buf.data, buf.offset ); in XMLRPC_to_xml_element_worker() [all …]
|
H A D | xml_element.c | 329 if(buf && *buf) { in xml_elem_entity_escape() 334 bufcopy = buf; in xml_elem_entity_escape() 349 bufcopy=buf; in xml_elem_entity_escape() 509 if(buf) { in simplestring_out_fptr() 536 simplestring buf; in xml_elem_serialize_to_string() local 537 simplestring_init(&buf); in xml_elem_serialize_to_string() 542 *buf_len = buf.len; in xml_elem_serialize_to_string() 545 return buf.str; in xml_elem_serialize_to_string() 687 char buf[100] = ""; in xml_elem_parse_buf() local 727 snprintf(buf, in xml_elem_parse_buf() [all …]
|
/PHP-7.3/ext/gd/libgd/ |
H A D | gd_io.c | 36 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.3/ext/phar/ |
H A D | tar.c | 31 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() 338 read = php_stream_read(fp, buf, sizeof(buf)); in phar_parse_tarfile() 352 if (sum1 == 0 && phar_tar_checksum(buf, sizeof(buf)) == 0) { in phar_parse_tarfile() 406 read = php_stream_read(fp, buf, sizeof(buf)); in phar_parse_tarfile() 593 read = php_stream_read(fp, buf, sizeof(buf)); in phar_parse_tarfile() [all …]
|
/PHP-7.3/ext/pdo_odbc/ |
H A D | odbc_stmt.c | 165 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() 656 char *buf; in odbc_stmt_get_col() local 697 buf = erealloc(buf, used + 255+1); in odbc_stmt_get_col() 701 buf = erealloc(buf, used + C->fetched_len+1); in odbc_stmt_get_col() 716 *ptr = buf; in odbc_stmt_get_col() [all …]
|
/PHP-7.3/ext/pdo/ |
H A D | pdo_sql_parser.c | 529 zend_string *buf; in pdo_parse_params() local 532 if (!buf) { in pdo_parse_params() 533 buf = ZSTR_EMPTY_ALLOC(); in pdo_parse_params() 535 … if (!stmt->dbh->methods->quoter(stmt->dbh, ZSTR_VAL(buf), ZSTR_LEN(buf), &plc->quoted, &plc->qlen, in pdo_parse_params() 540 if (buf) { in pdo_parse_params() 545 if (buf) { in pdo_parse_params() 556 zend_string *buf = NULL; in pdo_parse_params() local 573 plc->qlen = ZSTR_LEN(buf); in pdo_parse_params() 592 if (buf) { in pdo_parse_params() 600 if (buf) { in pdo_parse_params() [all …]
|
H A D | pdo_sql_parser.re | 215 zend_string *buf; 218 if (!buf) { 219 buf = ZSTR_EMPTY_ALLOC(); 221 … if (!stmt->dbh->methods->quoter(stmt->dbh, ZSTR_VAL(buf), ZSTR_LEN(buf), &plc->quoted, &plc->qlen, 226 if (buf) { 231 if (buf) { 242 zend_string *buf = NULL; 259 plc->qlen = ZSTR_LEN(buf); 278 if (buf) { 286 if (buf) { [all …]
|
/PHP-7.3/ext/dba/libcdb/ |
H A D | cdb_make.c | 41 static int cdb_make_write(struct cdb_make *c, char *buf, uint32 sz) { in cdb_make_write() argument 42 return php_stream_write(c->fp, buf, sz) == sz ? 0 : -1; in cdb_make_write() 106 char buf[8]; in cdb_make_addbegin() local 117 uint32_pack(buf, keylen); in cdb_make_addbegin() 118 uint32_pack(buf + 4, datalen); in cdb_make_addbegin() 119 if (cdb_make_write(c, buf, 8) != 0) in cdb_make_addbegin() 140 char buf[8]; in cdb_make_finish() local 212 uint32_pack(buf, c->hash[u].h); in cdb_make_finish() 213 uint32_pack(buf + 4, c->hash[u].p); in cdb_make_finish() 214 if (cdb_make_write(c, buf, 8) != 0) in cdb_make_finish()
|
/PHP-7.3/Zend/ |
H A D | zend.c | 187 buf.len = max_len; in ZEND_INI_END() 190 smart_string_0(&buf); in ZEND_INI_END() 192 if (buf.c) { in ZEND_INI_END() 193 *pbuf = buf.c; in ZEND_INI_END() 194 return buf.len; in ZEND_INI_END() 228 smart_str buf = {0}; in zend_vstrpprintf() local 232 if (!buf.s) { in zend_vstrpprintf() 240 smart_str_0(&buf); in zend_vstrpprintf() 241 return buf.s; in zend_vstrpprintf() 491 smart_str_0(&buf); in zend_print_zval_r_to_str() [all …]
|
/PHP-7.3/ext/zlib/tests/ |
H A D | inflate_get_status.phpt | 17 $buf = ''; 21 $buf .= inflate_add($ctx, substr($compressed, $i, 1)); 28 echo '$buf = ' . $buf; 57 $buf = Hello world.
|
H A D | gzreadgzwriteplain.phpt | 20 while ($buf = gzread($fp, 8192)) { 21 $data .= $buf; 34 while ($buf = gzread($fp, 8192)) { 35 $data .= $buf;
|
/PHP-7.3/ext/json/ |
H A D | json.c | 194 PHP_JSON_API int php_json_encode_ex(smart_str *buf, zval *val, int options, zend_long depth) /* {{{… in php_json_encode_ex() argument 202 return_code = php_json_encode_zval(buf, val, options, &encoder); in php_json_encode_ex() 209 PHP_JSON_API int php_json_encode(smart_str *buf, zval *val, int options) /* {{{ */ in php_json_encode() argument 211 return php_json_encode_ex(buf, val, options, JSON_G(encode_max_depth)); in php_json_encode() 273 smart_str buf = {0}; in PHP_FUNCTION() local 286 php_json_encode_zval(&buf, parameter, (int)options, &encoder); in PHP_FUNCTION() 291 smart_str_free(&buf); in PHP_FUNCTION() 296 smart_str_free(&buf); in PHP_FUNCTION() 302 smart_str_0(&buf); /* copy? */ in PHP_FUNCTION() 303 if (buf.s) { in PHP_FUNCTION() [all …]
|
/PHP-7.3/sapi/phpdbg/ |
H A D | phpdbg_out.c | 831 od.nextb = buf; in strx_printv() 861 *buf = NULL; in phpdbg_xml_vasprintf() 864 *buf = emalloc(++cc); in phpdbg_xml_vasprintf() 866 efree(*buf); in phpdbg_xml_vasprintf() 867 *buf = NULL; in phpdbg_xml_vasprintf() 917 int len = tmp - *buf; in phpdbg_encode_xml() 918 *buf = erealloc(*buf, len + 1); in phpdbg_encode_xml() 931 if ((*buf)[i] < 0x20) { in phpdbg_encode_ctrl_chars() 946 efree(*buf); in phpdbg_encode_ctrl_chars() 1038 efree(buf); in phpdbg_process_print() [all …]
|
H A D | phpdbg_list.c | 158 char *buffer = data->buf + linestart; in phpdbg_list_file() 254 data.buf = estrndup(bufptr, len); in phpdbg_compile_file() 259 efree(data.buf); in phpdbg_compile_file() 263 data.buf[data.len] = '\0'; in phpdbg_compile_file() 267 for (line = 0, bufptr = data.buf - 1, endptr = data.buf + data.len; ++bufptr < endptr;) { in phpdbg_compile_file() 269 dataptr->line[++line] = (uint32_t)(bufptr - data.buf) + 1; in phpdbg_compile_file() 275 dataptr->line[line] = endptr - data.buf; in phpdbg_compile_file() 337 …for (line = 0, bufptr = dataptr->buf - 1, endptr = dataptr->buf + dataptr->len; ++bufptr < endptr;… in phpdbg_compile_string() 339 dataptr->line[++line] = (uint32_t)(bufptr - dataptr->buf) + 1; in phpdbg_compile_string() 343 dataptr->line[line] = endptr - dataptr->buf; in phpdbg_compile_string() [all …]
|
/PHP-7.3/win32/ |
H A D | glob.c | 641 if (g_Ctoc(pathbuf, buf, sizeof(buf))) 835 char buf[MAXPATHLEN]; local 838 strlcpy(buf, ".", sizeof(buf)); 840 if (g_Ctoc(str, buf, sizeof(buf))) 847 return(opendir(buf)); 856 char buf[MAXPATHLEN]; local 858 if (g_Ctoc(fn, buf, sizeof(buf))) 871 char buf[MAXPATHLEN]; local 873 if (g_Ctoc(fn, buf, sizeof(buf))) 893 g_Ctoc(str, buf, len) in g_Ctoc() argument [all …]
|
/PHP-7.3/main/streams/ |
H A D | filter.c | 83 bucket->buf = pemalloc(buflen, 1); in php_stream_bucket_new() 84 memcpy(bucket->buf, buf, buflen); in php_stream_bucket_new() 88 bucket->buf = buf; in php_stream_bucket_new() 119 retval->buf = pemalloc(retval->buflen, retval->is_persistent); in php_stream_bucket_make_writeable() 120 memcpy(retval->buf, bucket->buf, retval->buflen); in php_stream_bucket_make_writeable() 135 (*left)->buf = pemalloc(length, in->is_persistent); in php_stream_bucket_split() 137 memcpy((*left)->buf, in->buf, length); in php_stream_bucket_split() 143 (*right)->buf = pemalloc((*right)->buflen, in->is_persistent); in php_stream_bucket_split() 144 memcpy((*right)->buf, in->buf + length, (*right)->buflen); in php_stream_bucket_split() 156 pefree(bucket->buf, bucket->is_persistent); in php_stream_bucket_delref() [all …]
|
/PHP-7.3/ext/mysqlnd/ |
H A D | mysqlnd_loaddata.c | 67 int mysqlnd_local_infile_read(void * ptr, zend_uchar * buf, unsigned int buf_len) in mysqlnd_local_infile_read() argument 74 count = (int) php_stream_read(info->fd, (char *) buf, buf_len); in mysqlnd_local_infile_read() 144 zend_uchar *buf = NULL; in mysqlnd_handle_local_infile() local 169 buf = (zend_uchar *) mnd_ecalloc(1, buflen); in mysqlnd_handle_local_infile() 187 …while ((bufsize = infile.local_infile_read (info, buf + MYSQLND_HEADER_SIZE, buflen - MYSQLND_HEAD… in mysqlnd_handle_local_infile() 188 if ((ret = net->data->m.send(net, vio, buf, bufsize, conn->stats, conn->error_info)) == 0) { in mysqlnd_handle_local_infile() 226 if (buf) { in mysqlnd_handle_local_infile() 227 mnd_efree(buf); in mysqlnd_handle_local_infile()
|
/PHP-7.3/main/ |
H A D | php_reentrancy.h | 72 PHPAPI char *php_ctime_r(const time_t *clock, char *buf); 76 char *ctime_r(const time_t *clock, char *buf); 83 PHPAPI char *php_asctime_r(const struct tm *tm, char *buf); 87 char *asctime_r(const struct tm *tm, char *buf);
|
/PHP-7.3/ext/openssl/tests/ |
H A D | bug72333.phpt | 46 function blocking_fwrite($fp, $buf) { 50 $result = fwrite($fp, $buf); 55 if ($total >= strlen($buf)) { 58 $buf = substr($buf, $total);
|
/PHP-7.3/ext/fileinfo/libmagic/ |
H A D | readcdf.c | 147 char buf[64]; in cdf_file_property_info() local 159 cdf_print_property_name(buf, sizeof(buf), info[i].pi_id); in cdf_file_property_info() 212 buf, vbuf) == -1) in cdf_file_property_info() 240 ", %s: %s", buf, c) == -1) in cdf_file_property_info() 266 char buf[256]; in cdf_file_catalog() local 278 cdf_u16tos8(buf, ce[i].ce_namlen, ce[i].ce_name), in cdf_file_catalog() 351 format_clsid(char *buf, size_t len, const uint64_t uuid[2]) { in format_clsid() argument 352 snprintf(buf, len, "%.8" PRIx64 "-%.4" PRIx64 "-%.4" PRIx64 "-%.4" in format_clsid() 359 return buf; in format_clsid() 539 const unsigned char *buf = b->fbuf; in file_trycdf() local [all …]
|
H A D | is_tar.c | 65 const unsigned char *buf = b->fbuf; in file_is_tar() local 77 tar = is_tar(buf, nbytes); in file_is_tar() 95 is_tar(const unsigned char *buf, size_t nbytes) in is_tar() argument 97 const union record *header = (const union record *)(const void *)buf; in is_tar()
|
/PHP-7.3/sapi/fpm/fpm/ |
H A D | fpm_stdio.c | 119 char buf[max_buf_size]; local 167 res = read(fd, buf + in_buf, max_buf_size - 1 - in_buf); 177 if (!buf[in_buf - 1]) { 190 nl = memchr(buf, '\n', in_buf); 193 int out_len = nl - buf; 194 zlog_stream_str(log_stream, buf, out_len); 199 memmove(buf, buf + out_len, in_buf - out_len); 203 zlog_stream_str(log_stream, buf, in_buf);
|