/PHP-5.4/ext/phar/ |
H A D | util.c | 1797 unsigned char buf[1024]; local 1888 read_size = sizeof(buf); 1930 read_size = sizeof(buf); 2074 unsigned char buf[1024]; local 2092 while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) { 2107 while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) { 2165 while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) { 2209 while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) { 2224 while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) { 2277 efree(buf); [all …]
|
/PHP-5.4/win32/ |
H A D | sendmail.c | 881 static char buf[MAIL_BUFFER_SIZE]; in Ack() local 888 if ((rlen = recv(sc, buf + Index, ((MAIL_BUFFER_SIZE) - 1) - Received, 0)) < 1) { in Ack() 892 buf[Received] = 0; in Ack() 900 if (Received < 5 || buf[Received - 1] != '\n' || buf[Received - 2] != '\r') { in Ack() 904 if (buf[0] > '3') { in Ack() 910 if (buf[Received-1] == '\n' || buf[Received-1] == '\r') { in Ack() 912 if (buf[Received-2] == '\r' || buf[Received-2] == '\n') { in Ack() 918 *server_response = estrndup(buf, Received - dec); in Ack()
|
H A D | winutil.h | 23 PHPAPI php_win32_get_random_bytes(unsigned char *buf, size_t size);
|
/PHP-5.4/sapi/cgi/ |
H A D | cgi_main.c | 436 len = slprintf(buf, sizeof(buf), "Status:%s\r\n", s); in sapi_cgi_send_headers() 468 PHPWRITE_H(buf, len); in sapi_cgi_send_headers() 563 char *buf; in _sapi_cgi_putenv() local 584 buf = (char *) malloc(len); in _sapi_cgi_putenv() 585 if (buf == NULL) { in _sapi_cgi_putenv() 592 putenv(buf); in _sapi_cgi_putenv() 598 putenv(buf); in _sapi_cgi_putenv() 734 char *buf = malloc(len+2); in sapi_cgi_log_message() local 736 memcpy(buf, message, len); in sapi_cgi_log_message() 739 free(buf); in sapi_cgi_log_message() [all …]
|
/PHP-5.4/sapi/webjames/ |
H A D | webjames.c | 107 snprintf(buf, BUF_SIZE, "%d", WG(conn)->field);\ 108 php_register_variable(name, buf, track_vars_array TSRMLS_CC);\ 118 char buf[BUF_SIZE + 1]; in sapi_webjames_register_variables() local 121 buf[BUF_SIZE] = '\0'; in sapi_webjames_register_variables() 141 …snprintf(buf, BUF_SIZE, "%d.%d.%d.%d", WG(conn)->ipaddr[0], WG(conn)->ipaddr[1], WG(conn)->ipaddr[… in sapi_webjames_register_variables() 142 ADD_STRING("REMOTE_ADDR", buf); in sapi_webjames_register_variables()
|
/PHP-5.4/ext/snmp/ |
H A D | snmp.c | 566 *buf = '\0'; in php_snmp_getvalue() 578 if (buf == dbuf) { in php_snmp_getvalue() 586 buf = &(sbuf[0]); in php_snmp_getvalue() 591 buf = dbuf; in php_snmp_getvalue() 597 buf = dbuf; in php_snmp_getvalue() 607 *buf = 0; in php_snmp_getvalue() 631 buf[buflen]=0; in php_snmp_getvalue() 641 buf[buflen]=0; in php_snmp_getvalue() 647 buf[buflen]=0; in php_snmp_getvalue() 715 char buf[2048]; in php_snmp_internal() local [all …]
|
/PHP-5.4/ext/gd/libgd/ |
H A D | gd_io_dp.c | 58 static int dynamicGetbuf (gdIOCtxPtr ctx, void *buf, int len); 198 dynamicPutbuf (struct gdIOCtx *ctx, const void *buf, int size) in dynamicPutbuf() argument 203 appendDynamic (dctx->dp, buf, size); in dynamicPutbuf() 227 static int dynamicGetbuf (gdIOCtxPtr ctx, void *buf, int len) in dynamicGetbuf() argument 246 memcpy(buf, (void *) ((char *) dp->data + dp->pos), rlen); in dynamicGetbuf()
|
/PHP-5.4/ext/soap/ |
H A D | php_http.c | 41 unsigned char* buf; in proxy_authentication() local 56 efree(buf); in proxy_authentication() 71 unsigned char* buf; in basic_authentication() local 86 efree(buf); in basic_authentication() 272 char *buf, in make_http_soap_request() argument 308 request = buf; in make_http_soap_request() 386 if (request != buf) {efree(request);} in make_http_soap_request() 397 if (request != buf) {efree(request);} in make_http_soap_request() 407 if (request != buf) {efree(request);} in make_http_soap_request() 724 unsigned char* buf; in make_http_soap_request() local [all …]
|
/PHP-5.4/ext/sockets/ |
H A D | multicast.c | 453 char *buf = NULL, local 466 buf = ecalloc(size, 1); 468 if_conf.ifc_buf = buf; 482 efree(buf); 483 buf = NULL; 525 efree(buf); 539 if (buf != NULL) 540 efree(buf);
|
H A D | sockets.c | 168 ZEND_ARG_INFO(0, buf) 214 ZEND_ARG_INFO(1, buf) 221 ZEND_ARG_INFO(0, buf) 228 ZEND_ARG_INFO(1, buf) 237 ZEND_ARG_INFO(0, buf) 564 const char *buf; local 588 buf = NULL; 605 return (buf ? (char *) buf : ""); 1766 zval_dtor(buf); 1772 zval_dtor(buf); [all …]
|
/PHP-5.4/ext/zip/lib/ |
H A D | zip_source_zip.c | 123 char b[8192], *buf; in read_zip() local 128 buf = (char *)data; in read_zip() 149 if ((i=zip_fread(z->zf, buf, n)) < 0) in read_zip()
|
/PHP-5.4/ext/pcre/pcrelib/sljit/ |
H A D | sljitLir.c | 418 buf = compiler->buf; in sljit_free_compiler() 419 while (buf) { in sljit_free_compiler() 420 curr = buf; in sljit_free_compiler() 421 buf = buf->next; in sljit_free_compiler() 426 while (buf) { in sljit_free_compiler() 427 curr = buf; in sljit_free_compiler() 428 buf = buf->next; in sljit_free_compiler() 493 ret = compiler->buf->memory + compiler->buf->used_size; in ensure_buf() 542 struct sljit_memory_fragment *buf = compiler->buf; in reverse_buf() local 549 prev = buf; in reverse_buf() [all …]
|
/PHP-5.4/ext/iconv/ |
H A D | iconv.c | 251 snprintf(buf, sizeof(buf), "%d.%d", in PHP_INI_END() 253 version = buf; in PHP_INI_END() 678 out_p = buf; in _php_iconv_strlen() 799 out_p = buf; in _php_iconv_substr() 931 out_p = buf; in _php_iconv_strpos() 961 if (_php_iconv_memequal(buf, ndl_buf_p, sizeof(buf))) { in _php_iconv_strpos() 989 if (_php_iconv_memequal(buf, &ndl_buf[i], sizeof(buf))) { in _php_iconv_strpos() 1002 if (_php_iconv_memequal(buf, ndl_buf_p, sizeof(buf))) { in _php_iconv_strpos() 1032 if (_php_iconv_memequal(buf, &ndl_buf[i], sizeof(buf))) { in _php_iconv_strpos() 1176 out_p = buf; in _php_iconv_mime_encode() [all …]
|
/PHP-5.4/TSRM/ |
H A D | tsrm_win32.h | 102 TSRM_API int win32_utime(const char *filename, struct utimbuf *buf); 107 TSRM_API int shmctl(int key, int cmd, struct shmid_ds *buf);
|
/PHP-5.4/ext/standard/ |
H A D | math.c | 201 char buf[40]; in _php_math_round() local 202 snprintf(buf, 39, "%15fe%d", tmp_value, -places); in _php_math_round() 203 buf[39] = '\0'; in _php_math_round() 204 tmp_value = zend_strtod(buf, NULL); in _php_math_round() 906 char buf[(sizeof(unsigned long) << 3) + 1]; in _php_math_longtobase() local 916 end = ptr = buf + sizeof(buf) - 1; in _php_math_longtobase() 922 } while (ptr > buf && value); in _php_math_longtobase() 944 char buf[(sizeof(double) << 3) + 1]; in _php_math_zvaltobase() local 952 end = ptr = buf + sizeof(buf) - 1; in _php_math_zvaltobase() 958 } while (ptr > buf && fabs(fvalue) >= 1); in _php_math_zvaltobase()
|
/PHP-5.4/main/streams/ |
H A D | php_stream_transport.h | 103 PHPAPI int php_stream_xport_recvfrom(php_stream *stream, char *buf, size_t buflen, 109 PHPAPI int php_stream_xport_sendto(php_stream *stream, const char *buf, size_t buflen, 149 char *buf; member
|
/PHP-5.4/sapi/isapi/ |
H A D | php5isapi.c | 875 char buf[1024]; in HttpExtensionProc() local 904 _snprintf(buf, sizeof(buf)-1,"PHP has encountered a Stack overflow"); in HttpExtensionProc() 905 php_isapi_report_exception(buf, strlen(buf) TSRMLS_CC); in HttpExtensionProc() 907 …_snprintf(buf, sizeof(buf)-1,"PHP has encountered an Access Violation at %p", e->ExceptionRecord->… in HttpExtensionProc() 908 php_isapi_report_exception(buf, strlen(buf) TSRMLS_CC); in HttpExtensionProc() 911 …_snprintf(buf, sizeof(buf)-1,"PHP has encountered an Unhandled Exception Code %d at %p", e->Except… in HttpExtensionProc() 912 php_isapi_report_exception(buf, strlen(buf) TSRMLS_CC); in HttpExtensionProc()
|
/PHP-5.4/ext/ereg/regex/ |
H A D | debug.c | 235 static unsigned char buf[10]; local 238 sprintf(buf, "%c", ch); 240 sprintf(buf, "\\%o", ch); 241 return(buf);
|
/PHP-5.4/ext/mbstring/oniguruma/enc/ |
H A D | euc_tw.c | 64 euctw_code_to_mbc(OnigCodePoint code, UChar *buf) in euctw_code_to_mbc() argument 66 return onigenc_mb4_code_to_mbc(ONIG_ENCODING_EUC_TW, code, buf); in euctw_code_to_mbc()
|
H A D | big5.c | 64 big5_code_to_mbc(OnigCodePoint code, UChar *buf) in big5_code_to_mbc() argument 66 return onigenc_mb2_code_to_mbc(ONIG_ENCODING_BIG5, code, buf); in big5_code_to_mbc()
|
/PHP-5.4/sapi/fpm/fpm/ |
H A D | fpm_trace.h | 14 int fpm_trace_get_strz(char *buf, size_t sz, long addr);
|
/PHP-5.4/ext/posix/ |
H A D | config.m4 | 22 char buf[64]; 24 return ttyname_r(0, buf, 64) ? 1 : 0;
|
/PHP-5.4/ext/fileinfo/libmagic/ |
H A D | softmagic.c | 368 char buf[128], tbuf[26]; in mprint() local 378 (void)snprintf(buf, sizeof(buf), "%c", in mprint() 399 (void)snprintf(buf, sizeof(buf), "%hu", in mprint() 422 (void)snprintf(buf, sizeof(buf), "%u", (uint32_t)v); in mprint() 535 (void)snprintf(buf, sizeof(buf), "%g", vf); in mprint() 555 (void)snprintf(buf, sizeof(buf), "%g", vd); in mprint() 1064 ms->search.s = buf; in mcopy() 1710 sbuf = ms->o.buf; in mget() 1712 ms->o.buf = NULL; in mget() 1718 rbuf = ms->o.buf; in mget() [all …]
|
/PHP-5.4/ext/tidy/ |
H A D | tidy.c | 484 efree(buf); in php_tidy_free() 605 TidyBuffer buf; in php_tidy_quick_repair() local 607 tidyBufInit(&buf); in php_tidy_quick_repair() 780 TidyBuffer buf; in tidy_node_cast_handler() local 798 tidyBufInit(&buf); in tidy_node_cast_handler() 801 ZVAL_STRINGL(out, (char *) buf.bp, buf.size-1, 1); in tidy_node_cast_handler() 805 tidyBufFree(&buf); in tidy_node_cast_handler() 848 TidyBuffer buf; in tidy_add_default_properties() local 862 ADD_PROPERTY_STRINGL(obj->std.properties, value, buf.bp, buf.size ? buf.size-1 : 0); in tidy_add_default_properties() 1044 TidyBuffer buf; in php_tidy_parse_string() local [all …]
|
/PHP-5.4/ext/spl/ |
H A D | spl_observer.c | 750 smart_str buf = {0}; in SPL_METHOD() local 759 smart_str_appendl(&buf, "x:", 2); in SPL_METHOD() 762 php_var_serialize(&buf, &flags, &var_hash TSRMLS_CC); in SPL_METHOD() 769 smart_str_free(&buf); in SPL_METHOD() 774 smart_str_appendc(&buf, ','); in SPL_METHOD() 776 smart_str_appendc(&buf, ';'); in SPL_METHOD() 781 smart_str_appendl(&buf, "m:", 2); in SPL_METHOD() 791 if (buf.c) { in SPL_METHOD() 792 RETURN_STRINGL(buf.c, buf.len, 0); in SPL_METHOD() 805 char *buf; in SPL_METHOD() local [all …]
|