/php-src/ext/iconv/ |
H A D | iconv.c | 71 static char buf[16]; in get_iconv_version() local 73 version = buf; in get_iconv_version() 582 out_p = buf; in _php_iconv_strlen() 689 out_p = buf; in _php_iconv_substr() 811 out_p = buf; in _php_iconv_strpos() 839 if (_php_iconv_memequal(buf, ndl_buf_p, sizeof(buf))) { in _php_iconv_strpos() 911 char *buf = NULL; in _php_iconv_mime_encode() local 1014 out_p = buf; in _php_iconv_mime_encode() 1104 out_p = buf; in _php_iconv_mime_encode() 1186 if (buf != NULL) { in _php_iconv_mime_encode() [all …]
|
/php-src/sapi/litespeed/ |
H A D | lsapi_main.c | 217 char buf[128]; in litespeed_php_import_environment_variables() local 218 char **env, *p, *t = buf; in litespeed_php_import_environment_variables() 219 size_t alloc_size = sizeof(buf); in litespeed_php_import_environment_variables() 254 if (t != buf && t != NULL) { in litespeed_php_import_environment_variables() 390 len = slprintf(buf, sizeof(buf), "Status:%s", s); in sapi_lsapi_send_headers_like_cgi() 415 … len = slprintf(buf, sizeof(buf), "Status: %d", SG(sapi_headers).http_response_code); in sapi_lsapi_send_headers_like_cgi() 505 char buf[8192]; in sapi_lsapi_log_message() local 510 message = buf; in sapi_lsapi_log_message() 526 char buf[0x100]; 527 vsnprintf(buf, sizeof(buf), fmt, ap); [all …]
|
/php-src/ext/sockets/ |
H A D | conversions.c | 48 # define msg_control Control.buf 51 # define iov_base buf 224 char *bufp = buf; in from_array_iterate() 229 if ((size_t)snprintf(buf, sizeof(buf), "element #%u", i) >= sizeof(buf)) { in from_array_iterate() 930 char *bufp = buf; in from_zval_write_control_array() 961 if ((size_t)snprintf(buf, sizeof(buf), "element #%u", (unsigned)i++) >= sizeof(buf)) { in from_zval_write_control_array() 1023 char *bufp = buf; in to_zval_read_control_array() 1036 if ((size_t)snprintf(buf, sizeof(buf), "element #%u", (unsigned)i++) >= sizeof(buf)) { in to_zval_read_control_array() 1223 memcpy(ZSTR_VAL(buf), msghdr->msg_iov[i].iov_base, ZSTR_LEN(buf)); in to_zval_read_iov() 1224 ZSTR_VAL(buf)[ZSTR_LEN(buf)] = '\0'; in to_zval_read_iov() local [all …]
|
/php-src/main/streams/ |
H A D | plain_wrapper.c | 459 ret = fread(buf, 1, count, data->file); in php_stdiop_read() 1380 char buf[MAXPATHLEN]; in php_plain_files_mkdir() local 1386 if (php_check_open_basedir(buf)) { in php_plain_files_mkdir() 1394 char *e = buf + strlen(buf); in php_plain_files_mkdir() 1396 if ((p = memchr(buf, DEFAULT_SLASH, dir_len))) { in php_plain_files_mkdir() 1397 offset = p - buf + 1; in php_plain_files_mkdir() 1405 …while ( (p = strrchr(buf + offset, DEFAULT_SLASH)) || (offset != 1 && (p = strrchr(buf, DEFAULT_SL… in php_plain_files_mkdir() 1409 while (p > buf && *(p-1) == DEFAULT_SLASH) { in php_plain_files_mkdir() 1414 if (VCWD_STAT(buf, &sb) == 0) { in php_plain_files_mkdir() 1427 p = buf; in php_plain_files_mkdir() [all …]
|
H A D | php_stream_transport.h | 100 PHPAPI int php_stream_xport_recvfrom(php_stream *stream, char *buf, size_t buflen, 106 PHPAPI int php_stream_xport_sendto(php_stream *stream, const char *buf, size_t buflen, 144 char *buf; member
|
/php-src/ext/gd/libgd/ |
H A D | gd_io_dp.c | 58 static int dynamicGetbuf (gdIOCtxPtr ctx, void *buf, int len); 201 dynamicPutbuf (struct gdIOCtx *ctx, const void *buf, int size) in dynamicPutbuf() argument 206 appendDynamic (dctx->dp, buf, size); in dynamicPutbuf() 230 static int dynamicGetbuf (gdIOCtxPtr ctx, void *buf, int len) in dynamicGetbuf() argument 249 memcpy(buf, (void *) ((char *) dp->data + dp->pos), rlen); in dynamicGetbuf()
|
/php-src/Zend/ |
H A D | zend_virtual_cwd.h | 172 CWD_API char *virtual_getcwd(char *buf, size_t size); 182 CWD_API int virtual_stat(const char *path, zend_stat_t *buf); 183 CWD_API int virtual_lstat(const char *path, zend_stat_t *buf); 192 CWD_API int virtual_utime(const char *filename, struct utimbuf *buf); 274 #define VCWD_GETWD(buf) argument 328 #define VCWD_GETWD(buf) getwd(buf) argument
|
/php-src/ext/posix/ |
H A D | posix.c | 790 char *buf; in PHP_FUNCTION() local 807 buf = emalloc(buflen); in PHP_FUNCTION() 811 err = getgrnam_r(name, g, buf, buflen, &g); in PHP_FUNCTION() 815 buf = erealloc(buf, buflen); in PHP_FUNCTION() 819 efree(buf); in PHP_FUNCTION() 836 efree(buf); in PHP_FUNCTION() 930 char *buf; in PHP_FUNCTION() local 947 buf = emalloc(buflen); in PHP_FUNCTION() 955 buf = erealloc(buf, buflen); in PHP_FUNCTION() 958 efree(buf); in PHP_FUNCTION() [all …]
|
/php-src/ext/intl/breakiterator/ |
H A D | codepointiterator_internal.cpp | 246 char *buf = (char*)stackBuffer; in createBufferClone() local 254 uint32_t offsetUp = (uint32_t)U_ALIGNMENT_OFFSET_UP(buf); in createBufferClone() 256 buf += offsetUp; in createBufferClone() 270 return new(buf) CodePointBreakIterator(*this); in createBufferClone()
|
/php-src/ext/dom/lexbor/lexbor/core/ |
H A D | in.c | 58 const lxb_char_t *buf, size_t buf_size) in lexbor_in_node_make() argument 67 node->begin = buf; in lexbor_in_node_make() 68 node->end = buf + buf_size; in lexbor_in_node_make() 69 node->use = buf; in lexbor_in_node_make()
|
/php-src/ext/sockets/tests/ |
H A D | socket_abstract_path.phpt | 36 if (!socket_recv($conns, $buf, 20, 0)) die("recv"); 37 print_r($buf);
|
/php-src/TSRM/ |
H A D | tsrm_win32.h | 100 TSRM_API int win32_utime(const char *filename, struct utimbuf *buf); 105 TSRM_API int shmctl(int key, int cmd, struct shmid_ds *buf);
|
/php-src/ext/json/ |
H A D | php_json.h | 104 PHP_JSON_API zend_result php_json_encode_ex(smart_str *buf, zval *val, int options, zend_long depth… 105 PHP_JSON_API zend_result php_json_encode(smart_str *buf, zval *val, int options);
|
/php-src/sapi/cli/ |
H A D | php_cli_server.c | 255 if (buf == NULL) { in php_cli_server_get_system_time() 770 char buf[52]; in sapi_cli_server_log_write() local 781 buf[l - 1] = '\0'; in sapi_cli_server_log_write() 1263 char *buf = NULL; in php_cli_server_logf() local 1274 if (!buf) { in php_cli_server_logf() 1280 efree(buf); in php_cli_server_logf() 1468 while (q > buf) { in php_cli_server_request_translate_vpath() 1488 pefree(buf, 1); in php_cli_server_request_translate_vpath() 1824 char buf[16384]; in php_cli_server_client_read_request() local 1842 nbytes_read = recv(client->sock, buf, sizeof(buf) - 1, 0); in php_cli_server_client_read_request() [all …]
|
/php-src/ext/session/ |
H A D | session.c | 858 return buf.s; in PHP_INI_END() 913 smart_str_0(&buf); in PS_SERIALIZER_ENCODE_FUNC() 916 return buf.s; in PS_SERIALIZER_ENCODE_FUNC() 982 smart_str_0(&buf); in PS_SERIALIZER_ENCODE_FUNC() 985 return buf.s; in PS_SERIALIZER_ENCODE_FUNC() 1131 char buf[MAX_STR]; in strcpy_gmt() local 1167 ADD_HEADER(buf); in last_modified() 1183 ADD_HEADER(buf); in CACHE_LIMITER_FUNC() 1186 ADD_HEADER(buf); in CACHE_LIMITER_FUNC() 1197 ADD_HEADER(buf); in CACHE_LIMITER_FUNC() [all …]
|
/php-src/sapi/phpdbg/ |
H A D | phpdbg_io.h | 22 PHPDBG_API int phpdbg_consume_stdin_line(char *buf);
|
H A D | phpdbg_prompt.c | 459 char *buf; in PHPDBG_COMMAND() local 476 if (!memcmp(sep, nl, seplen) && (*buf == '\n' || (*buf == '\r' && buf[1] == '\n'))) { in PHPDBG_COMMAND() 483 nl = buf + 1; in PHPDBG_COMMAND() 485 buf++; in PHPDBG_COMMAND() 487 if (buf != nl && buf <= nl + seplen) { in PHPDBG_COMMAND() 546 memmove(data->buf, data->buf + 2, data->len); in phpdbg_compile_stdin() 557 char *buf; in phpdbg_compile() local 783 char *buf = emalloc(end - p + 2), *q = buf; in PHPDBG_COMMAND() local 813 efree(buf); in PHPDBG_COMMAND() 837 efree(buf); in PHPDBG_COMMAND() [all …]
|
H A D | phpdbg_cmd.c | 760 char buf[PHPDBG_MAX_CMD]; in phpdbg_read_input() 762 phpdbg_consume_stdin_line(buf); in phpdbg_read_input() 763 buffer = estrdup(buf); in phpdbg_read_input() 801 char buf[PHPDBG_MAX_CMD]; in phpdbg_ask_user_permission() local 806 phpdbg_consume_stdin_line(buf); in phpdbg_ask_user_permission() 807 if ((buf[1] == '\n' || (buf[1] == '\r' && buf[2] == '\n')) && (buf[0] == 'y' || buf[0] == 'n')) { in phpdbg_ask_user_permission() 808 if (buf[0] == 'y') { in phpdbg_ask_user_permission()
|
/php-src/ext/dom/ |
H A D | html_document.c | 974 char buf[4096]; in PHP_METHOD() local 1013 (const lxb_char_t *) buf, in PHP_METHOD() 1038 while ((read = php_stream_read(stream, buf, sizeof(buf))) > 0) { in PHP_METHOD() 1039 const lxb_char_t *buf_ref = (const lxb_char_t *) buf; in PHP_METHOD() 1158 smart_str_appendl((smart_str *) ctx, buf, size); in dom_write_output_smart_str() 1165 if (UNEXPECTED(php_stream_write(stream, buf, len) < 0)) { in dom_write_output_stream() 1175 const lxb_char_t *buf_ref = (const lxb_char_t *) buf; in dom_saveHTML_write_string_len() 1202 return dom_saveHTML_write_string_len(application_data, buf, strlen(buf)); in dom_saveHTML_write_string() 1330 smart_str buf = {0}; in PHP_METHOD() local 1332 output_ctx.output_data = &buf; in PHP_METHOD() [all …]
|
/php-src/win32/ |
H A D | sendmail.c | 925 ZEND_TLS char buf[MAIL_BUFFER_SIZE]; in Ack() local 936 if ((rlen = recv(PW32G(mail_socket), buf + Index, ((MAIL_BUFFER_SIZE) - 1) - Received, 0)) < 1) { in Ack() 940 buf[Received] = 0; in Ack() 948 if (Received < 5 || buf[Received - 1] != '\n' || buf[Received - 2] != '\r') { in Ack() 952 if (buf[0] > '3') { in Ack() 958 if (buf[Received-1] == '\n' || buf[Received-1] == '\r') { in Ack() 960 if (buf[Received-2] == '\r' || buf[Received-2] == '\n') { in Ack() 966 *server_response = estrndup(buf, Received - dec); in Ack()
|
/php-src/sapi/fpm/fpm/ |
H A D | fpm_trace.h | 12 int fpm_trace_get_strz(char *buf, size_t sz, long addr);
|
/php-src/ext/fileinfo/libmagic/ |
H A D | softmagic.c | 547 buf += l; in varexpand() 576 buf += l; in varexpand() 586 buf[l] = '\0'; in varexpand() 613 (void)snprintf(buf, sizeof(buf), "%" format "u", \ in mprint() 616 (void)snprintf(buf, sizeof(buf), "%" format "d", \ in mprint() 743 (void)snprintf(buf, sizeof(buf), "%g", vf); in mprint() 762 (void)snprintf(buf, sizeof(buf), "%g", vd); in mprint() 812 (void) file_print_guid(buf, sizeof(buf), ms->ms_value.guid); in mprint() 831 file_fmtnum(buf, sizeof(buf), m->value.s, 8); in mprint() 2494 if (varexpand(ms, buf, sizeof(buf), m->mimetype) == -1) in handle_annotation() [all …]
|
/php-src/ext/soap/ |
H A D | php_http.c | 367 request = buf; in make_http_soap_request() 405 if (request != buf) { in make_http_soap_request() 445 if (request != buf) { in make_http_soap_request() 458 if (request != buf) { in make_http_soap_request() 470 if (request != buf) { in make_http_soap_request() 524 if (request != buf) { in make_http_soap_request() 807 zend_string *buf; in make_http_soap_request() local 879 if (request != buf) { in make_http_soap_request() 954 if (request != buf) { in make_http_soap_request() 1089 if (request != buf) { in make_http_soap_request() [all …]
|
/php-src/ext/standard/ |
H A D | url_scanner_ex.re | 506 YYCURSOR = ZSTR_VAL(ctx->buf.s); 507 YYLIMIT = ZSTR_VAL(ctx->buf.s) + ZSTR_LEN(ctx->buf.s); 582 ZSTR_LEN(ctx->buf.s) = rest; 590 smart_str buf = {0}; 614 smart_str_0(&buf); 616 result = estrndup(ZSTR_VAL(buf.s), ZSTR_LEN(buf.s)); 619 smart_str_free(&buf); 641 smart_str_free(&ctx->buf); 676 smart_str_free(&ctx->buf); 704 if (ctx->buf.s && ZSTR_LEN(ctx->buf.s)) { [all …]
|
/php-src/sapi/cgi/ |
H A D | cgi_main.c | 404 len = slprintf(buf, sizeof(buf), "Status:%s", s); in sapi_cgi_send_headers() 436 PHPWRITE_H(buf, len); in sapi_cgi_send_headers() 600 char *buf; in _sapi_cgi_putenv() local 621 buf = (char *) malloc(len); in _sapi_cgi_putenv() 622 if (buf == NULL) { in _sapi_cgi_putenv() 629 putenv(buf); in _sapi_cgi_putenv() 635 putenv(buf); in _sapi_cgi_putenv() 762 char *buf = malloc(len+2); in sapi_cgi_log_message() local 764 memcpy(buf, message, len); in sapi_cgi_log_message() 767 free(buf); in sapi_cgi_log_message() [all …]
|