/PHP-7.4/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.4/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.4/ext/json/ |
H A D | json.c | 193 PHP_JSON_API int php_json_encode_ex(smart_str *buf, zval *val, int options, zend_long depth) /* {{{… in php_json_encode_ex() argument 201 return_code = php_json_encode_zval(buf, val, options, &encoder); in php_json_encode_ex() 208 PHP_JSON_API int php_json_encode(smart_str *buf, zval *val, int options) /* {{{ */ in php_json_encode() argument 210 return php_json_encode_ex(buf, val, options, JSON_G(encode_max_depth)); in php_json_encode() 272 smart_str buf = {0}; in PHP_FUNCTION() local 285 php_json_encode_zval(&buf, parameter, (int)options, &encoder); in PHP_FUNCTION() 290 smart_str_free(&buf); in PHP_FUNCTION() 295 smart_str_free(&buf); in PHP_FUNCTION() 301 smart_str_0(&buf); /* copy? */ in PHP_FUNCTION() 302 if (buf.s) { in PHP_FUNCTION() [all …]
|
/PHP-7.4/main/ |
H A D | php_reentrancy.h | 65 PHPAPI char *php_ctime_r(const time_t *clock, char *buf); 69 char *ctime_r(const time_t *clock, char *buf); 76 PHPAPI char *php_asctime_r(const struct tm *tm, char *buf); 80 char *asctime_r(const struct tm *tm, char *buf);
|
H A D | spprintf.h | 27 PHPAPI void php_printf_to_smart_string(smart_string *buf, const char *format, va_list ap); 28 PHPAPI void php_printf_to_smart_str(smart_str *buf, const char *format, va_list ap);
|
H A D | explicit_bzero.c | 42 volatile unsigned char *buf = (volatile unsigned char *)dst; in php_explicit_bzero() 45 buf[i] = 0; in php_explicit_bzero()
|
/PHP-7.4/sapi/phpdbg/ |
H A D | phpdbg_out.c | 822 od.nextb = buf; in strx_printv() 852 *buf = NULL; in phpdbg_xml_vasprintf() 855 *buf = emalloc(++cc); in phpdbg_xml_vasprintf() 857 efree(*buf); in phpdbg_xml_vasprintf() 858 *buf = NULL; in phpdbg_xml_vasprintf() 897 int len = tmp - *buf; in phpdbg_encode_xml() 898 *buf = erealloc(*buf, len + 1); in phpdbg_encode_xml() 911 if ((*buf)[i] < 0x20) { in phpdbg_encode_ctrl_chars() 926 efree(*buf); in phpdbg_encode_ctrl_chars() 1018 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.4/Zend/ |
H A D | zend.c | 200 buf.len = max_len; in ZEND_INI_END() 203 smart_string_0(&buf); in ZEND_INI_END() 205 if (buf.c) { in ZEND_INI_END() 206 *pbuf = buf.c; in ZEND_INI_END() 207 return buf.len; in ZEND_INI_END() 241 smart_str buf = {0}; in zend_vstrpprintf() local 245 if (!buf.s) { in zend_vstrpprintf() 253 smart_str_0(&buf); in zend_vstrpprintf() 254 return buf.s; in zend_vstrpprintf() 499 smart_str_0(&buf); in zend_print_zval_r_to_str() [all …]
|
/PHP-7.4/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 …]
|
H A D | ioutil.h | 265 PW32IO size_t php_win32_ioutil_dirname(char *buf, size_t len); 270 PW32IO wchar_t *php_win32_ioutil_getcwd_w(wchar_t *buf, size_t len); 520 if (!buf && !len) { in php_win32_ioutil_getcwd() 522 buf = tmp_bufa; in php_win32_ioutil_getcwd() 524 memmove(buf, tmp_bufa, tmp_bufa_len + 1); in php_win32_ioutil_getcwd() 528 return buf; in php_win32_ioutil_getcwd() 745 PW32IO int php_win32_ioutil_fstat(int fd, php_win32_ioutil_stat_t *buf); 758 ret = php_win32_ioutil_stat_ex_w(pathw, pathw_len, buf, lstat); in php_win32_ioutil_stat_ex() 764 #define php_win32_ioutil_stat(path, buf) php_win32_ioutil_stat_ex(path, buf, 0) argument 765 #define php_win32_ioutil_lstat(path, buf) php_win32_ioutil_stat_ex(path, buf, 1) argument [all …]
|
/PHP-7.4/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.4/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.4/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.4/ext/pdo/ |
H A D | pdo_sql_parser.re | 241 zend_string *buf; 244 if (!buf) { 245 buf = ZSTR_EMPTY_ALLOC(); 247 … if (!stmt->dbh->methods->quoter(stmt->dbh, ZSTR_VAL(buf), ZSTR_LEN(buf), &plc->quoted, &plc->qlen, 252 if (buf) { 257 if (buf) { 268 zend_string *buf = NULL; 285 plc->qlen = ZSTR_LEN(buf); 305 if (buf) { 313 if (buf) { [all …]
|
/PHP-7.4/ext/standard/ |
H A D | html.c | 473 buf[0] = k; in php_utf32_utf8() 752 (*buf)++; in process_numeric_entity() 763 *buf = endptr; in process_numeric_entity() 783 *start = *buf; in process_named_entity_html() 790 while ((**buf >= 'a' && **buf <= 'z') || in process_named_entity_html() 791 (**buf >= 'A' && **buf <= 'Z') || in process_named_entity_html() 792 (**buf >= '0' && **buf <= '9')) { in process_named_entity_html() 793 (*buf)++; in process_named_entity_html() 845 *buf = code; in write_octet_sequence() 861 *buf = code; in write_octet_sequence() [all …]
|
H A D | info.c | 71 char *buf; in php_info_printf() local 76 len = vspprintf(&buf, 0, fmt, argv); in php_info_printf() 80 efree(buf); in php_info_printf() 705 struct utsname buf; in php_get_uname() local 710 php_uname = buf.sysname; in php_get_uname() 712 php_uname = buf.release; in php_get_uname() 714 php_uname = buf.nodename; in php_get_uname() 716 php_uname = buf.version; in php_get_uname() 718 php_uname = buf.machine; in php_get_uname() 721 buf.sysname, buf.nodename, buf.release, buf.version, in php_get_uname() [all …]
|
/PHP-7.4/ext/xmlrpc/libxmlrpc/ |
H A D | xml_element.c | 325 if(buf && *buf) { in xml_elem_entity_escape() 345 bufcopy = (const unsigned char *) buf; in xml_elem_entity_escape() 504 simplestring* buf = (simplestring*)f; in simplestring_out_fptr() local 505 if(buf) { in simplestring_out_fptr() 532 simplestring buf; in xml_elem_serialize_to_string() local 533 simplestring_init(&buf); in xml_elem_serialize_to_string() 538 *buf_len = buf.len; in xml_elem_serialize_to_string() 541 return buf.str; in xml_elem_serialize_to_string() 683 char buf[100] = ""; in xml_elem_parse_buf() local 723 snprintf(buf, in xml_elem_parse_buf() [all …]
|
/PHP-7.4/sapi/fpm/fpm/ |
H A D | fpm_stdio.c | 121 char buf[max_buf_size]; local 167 in_buf = read(fd, buf, max_buf_size - 1); 178 !memcmp(buf, &FPM_STDIO_CMD_FLUSH[cmd_pos], sizeof(FPM_STDIO_CMD_FLUSH) - cmd_pos)) { 187 switch (buf[pos]) { 189 zlog_stream_str(log_stream, buf + start, pos - start); 195 if (!memcmp(buf + pos, FPM_STDIO_CMD_FLUSH, sizeof(FPM_STDIO_CMD_FLUSH))) { 196 zlog_stream_str(log_stream, buf + start, pos - start); 201 } else if (!memcmp(buf + pos, FPM_STDIO_CMD_FLUSH, in_buf - pos)) { 203 zlog_stream_str(log_stream, buf + start, pos - start); 210 zlog_stream_str(log_stream, buf + start, pos - start);
|
/PHP-7.4/ext/fileinfo/libmagic/ |
H A D | readcdf.c | 143 char buf[64]; in cdf_file_property_info() local 155 cdf_print_property_name(buf, sizeof(buf), info[i].pi_id); in cdf_file_property_info() 165 if (NOTMIME(ms) && file_printf(ms, ", %s: %d", buf, in cdf_file_property_info() 170 if (NOTMIME(ms) && file_printf(ms, ", %s: %u", buf, in cdf_file_property_info() 175 if (NOTMIME(ms) && file_printf(ms, ", %s: %g", buf, in cdf_file_property_info() 208 buf, vbuf) == -1) in cdf_file_property_info() 225 ", %s: %s", buf, tbuf) == -1) in cdf_file_property_info() 236 ", %s: %s", buf, c) == -1) in cdf_file_property_info() 262 char buf[256]; in cdf_file_catalog() local 355 return buf; in format_clsid() [all …]
|
H A D | is_tar.c | 65 const unsigned char *buf = CAST(const unsigned char *, b->fbuf); in file_is_tar() local 77 tar = is_tar(buf, nbytes); in file_is_tar() 99 is_tar(const unsigned char *buf, size_t nbytes) in is_tar() argument 102 RCAST(const void *, buf)); in is_tar()
|
/PHP-7.4/Zend/tests/ |
H A D | bug70805.phpt | 15 unset($GLOBALS["a"]); // this will be called in gc_colloct_roots and put $a into gc roots buf 40 unset($a); // This one can not be putted into roots buf because it's full, thus gc_colloct_roots wi… 41 // but C::__destructor which is called in gc_colloct_roots will put $a into buf 42 // which will make $a be putted into gc roots buf twice
|
/PHP-7.4/ext/ftp/ |
H A D | ftp.c | 1033 ptr = data->buf; in ftp_put() 1040 ptr = data->buf; in ftp_put() 1101 ptr = data->buf; in ftp_append() 1477 char buf[256]; in my_send() local 1494 buf = (char*) buf + sent; in my_send() 1516 char buf[256]; in my_recv() local 1591 char buf[256]; in data_available() local 1615 char buf[256]; in data_writeable() local 1640 char buf[256]; in my_accept() local 1924 nread = SSL_read(ssl_handle, buf, sizeof(buf)); in ftp_ssl_shutdown() [all …]
|
/PHP-7.4/ext/gd/libgd/ |
H A D | gd_io_file.c | 77 static int filePutbuf (gdIOCtx * ctx, const void *buf, int size) in filePutbuf() argument 82 return fwrite(buf, 1, size, fctx->f); in filePutbuf() 86 static int fileGetbuf (gdIOCtx * ctx, void *buf, int size) in fileGetbuf() argument 91 return fread(buf, 1, size, fctx->f); in fileGetbuf()
|