/PHP-7.4/ext/pgsql/ |
H A D | pgsql.c | 4480 size_t buflen; local 4488 buflen = strlen(strtext); /* will shrink, also we discover if 4490 buffer = (unsigned char *) emalloc(buflen); /* isn't NULL terminated */ 4505 buflen--; 4512 buflen--; 4541 buflen -= 3; 4552 buffer = erealloc(buffer, buflen+1); 4553 buffer[buflen] = '\0'; 4555 *retbuflen = buflen;
|
/PHP-7.4/main/streams/ |
H A D | streams.c | 601 if (stream->readbuf && stream->readbuflen - stream->writepos < bucket->buflen) { in _php_stream_fill_read_buffer() 609 if (stream->readbuflen - stream->writepos < bucket->buflen) { in _php_stream_fill_read_buffer() 610 stream->readbuflen += bucket->buflen; in _php_stream_fill_read_buffer() 614 if (bucket->buflen) { in _php_stream_fill_read_buffer() 615 memcpy(stream->readbuf + stream->writepos, bucket->buf, bucket->buflen); in _php_stream_fill_read_buffer() 617 stream->writepos += bucket->buflen; in _php_stream_fill_read_buffer() 1203 if (_php_stream_write_buffer(stream, bucket->buf, bucket->buflen) < 0) { in _php_stream_write_filtered()
|
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() 85 bucket->buflen = buflen; in php_stream_bucket_new() 89 bucket->buflen = buflen; in php_stream_bucket_new() 120 memcpy(retval->buf, bucket->buf, retval->buflen); in php_stream_bucket_make_writeable() 136 (*left)->buflen = length; in php_stream_bucket_split() 142 (*right)->buflen = in->buflen - length; in php_stream_bucket_split() 371 stream->readbuflen += bucket->buflen; in php_stream_filter_append_ex() 375 stream->writepos += bucket->buflen; in php_stream_filter_append_ex() 444 flushed_size += bucket->buflen; in _php_stream_filter_flush() [all …]
|
H A D | xp_socket.c | 251 static inline int sock_sendto(php_netstream_data_t *sock, const char *buf, size_t buflen, int flags, in sock_sendto() argument 257 ret = sendto(sock->socket, buf, XP_SOCK_BUF_SIZE(buflen), flags, addr, XP_SOCK_BUF_SIZE(addrlen)); in sock_sendto() 262 …return ((ret = send(sock->socket, buf, buflen > INT_MAX ? INT_MAX : (int)buflen, flags)) == SOCK_C… in sock_sendto() 264 return ((ret = send(sock->socket, buf, buflen, flags)) == SOCK_CONN_ERR) ? -1 : ret; in sock_sendto() 268 static inline int sock_recvfrom(php_netstream_data_t *sock, char *buf, size_t buflen, int flags, in sock_recvfrom() argument 279 ret = recvfrom(sock->socket, buf, XP_SOCK_BUF_SIZE(buflen), flags, (struct sockaddr*)&sa, &sl); in sock_recvfrom() 284 ret = buflen; in sock_recvfrom() 300 ret = recv(sock->socket, buf, XP_SOCK_BUF_SIZE(buflen), flags); in sock_recvfrom() 405 xparam->inputs.buf, xparam->inputs.buflen, in php_sockop_set_option() 426 xparam->inputs.buf, xparam->inputs.buflen, in php_sockop_set_option()
|
H A D | php_stream_filter_api.h | 47 size_t buflen; member 68 PHPAPI php_stream_bucket *php_stream_bucket_new(php_stream *stream, char *buf, size_t buflen, uint8…
|
H A D | php_stream_transport.h | 102 PHPAPI int php_stream_xport_recvfrom(php_stream *stream, char *buf, size_t buflen, 108 PHPAPI int php_stream_xport_sendto(php_stream *stream, const char *buf, size_t buflen, 147 size_t buflen; member
|
H A D | transports.c | 389 PHPAPI int php_stream_xport_recvfrom(php_stream *stream, char *buf, size_t buflen, in php_stream_xport_recvfrom() argument 400 return php_stream_read(stream, buf, buflen); in php_stream_xport_recvfrom() 415 if (recvd_len > buflen) { in php_stream_xport_recvfrom() 416 recvd_len = buflen; in php_stream_xport_recvfrom() 421 buflen -= recvd_len; in php_stream_xport_recvfrom() 424 if (buflen == 0) { in php_stream_xport_recvfrom() 438 param.inputs.buflen = buflen; in php_stream_xport_recvfrom() 458 PHPAPI int php_stream_xport_sendto(php_stream *stream, const char *buf, size_t buflen, in php_stream_xport_sendto() argument 467 return php_stream_write(stream, buf, buflen); in php_stream_xport_sendto() 483 param.inputs.buflen = buflen; in php_stream_xport_sendto()
|
/PHP-7.4/ext/intl/locale/ |
H A D | locale_methods.c | 264 int32_t buflen = 512; in get_icu_value_internal() local 314 tag_value = zend_string_realloc( tag_value , buflen, 0); in get_icu_value_internal() 316 tag_value = zend_string_alloc( buflen, 0); in get_icu_value_internal() 318 tag_value_len = buflen; in get_icu_value_internal() 339 buflen++; /* add space for \0 */ in get_icu_value_internal() 353 } while( buflen > tag_value_len ); in get_icu_value_internal() 355 if( buflen ==0 ){ in get_icu_value_internal() 496 int32_t buflen = 512; in get_icu_disp_value_src_php() local 553 disp_name_len = buflen; in get_icu_disp_value_src_php() 591 } while( buflen > disp_name_len ); in get_icu_disp_value_src_php() [all …]
|
/PHP-7.4/ext/standard/ |
H A D | user_filters.c | 426 add_property_stringl(return_value, "data", bucket->buf, bucket->buflen); in PHP_FUNCTION() 427 add_property_long(return_value, "datalen", bucket->buflen); in PHP_FUNCTION() 463 if (bucket->buflen != Z_STRLEN_P(pzdata)) { in php_stream_bucket_attach() 465 bucket->buflen = Z_STRLEN_P(pzdata); in php_stream_bucket_attach() 467 memcpy(bucket->buf, Z_STRVAL_P(pzdata), bucket->buflen); in php_stream_bucket_attach() 533 add_property_stringl(return_value, "data", bucket->buf, bucket->buflen); in PHP_FUNCTION() 534 add_property_long(return_value, "datalen", bucket->buflen); in PHP_FUNCTION()
|
H A D | filters.c | 49 php_strtr(bucket->buf, bucket->buflen, rot13_from, rot13_to, 52); in strfilter_rot13_filter() 50 consumed += bucket->buflen; in strfilter_rot13_filter() 97 php_strtr(bucket->buf, bucket->buflen, lowercase, uppercase, 26); in strfilter_toupper_filter() 98 consumed += bucket->buflen; in strfilter_toupper_filter() 126 consumed += bucket->buflen; in strfilter_tolower_filter() 216 consumed = bucket->buflen; in strfilter_strip_tags_filter() 218 …bucket->buflen = php_strip_tags(bucket->buf, bucket->buflen, &(inst->state), inst->allowed_tags, i… in strfilter_strip_tags_filter() 1665 buckets_out, bucket->buf, bucket->buflen, &consumed, in strfilter_convert_filter() 1783 consumed += bucket->buflen; in consumed_filter_filter() 1989 consumed += bucket->buflen; in php_chunked_filter() [all …]
|
H A D | exec.c | 101 size_t buflen, bufl = 0; in php_exec() local 123 buflen = EXEC_INPUT_BUF; in php_exec() 131 if (buflen < (bufl + (b - buf) + EXEC_INPUT_BUF)) { in php_exec() 133 buflen = bufl + EXEC_INPUT_BUF; in php_exec() 134 buf = erealloc(buf, buflen); in php_exec()
|
/PHP-7.4/ext/mysqli/ |
H A D | mysqli_api.c | 418 stmt->result.buf[ofs].buflen = sizeof(float); in mysqli_stmt_bind_result_do_bind() 428 stmt->result.buf[ofs].buflen = sizeof(double); in mysqli_stmt_bind_result_do_bind() 469 stmt->result.buf[ofs].buflen = sizeof(my_ulonglong); in mysqli_stmt_bind_result_do_bind() 470 stmt->result.buf[ofs].val = (char *)emalloc(stmt->result.buf[ofs].buflen); in mysqli_stmt_bind_result_do_bind() 474 bind[ofs].buffer_length = stmt->result.buf[ofs].buflen; in mysqli_stmt_bind_result_do_bind() 517 stmt->result.buf[ofs].buflen = in mysqli_stmt_bind_result_do_bind() 525 if (!(stmt->result.buf[ofs].buflen = stmt->stmt->fields[ofs].max_length)) in mysqli_stmt_bind_result_do_bind() 526 ++stmt->result.buf[ofs].buflen; in mysqli_stmt_bind_result_do_bind() 528 stmt->result.buf[ofs].val = (char *)emalloc(stmt->result.buf[ofs].buflen); in mysqli_stmt_bind_result_do_bind() 532 bind[ofs].buffer_length = stmt->result.buf[ofs].buflen; in mysqli_stmt_bind_result_do_bind() [all …]
|
H A D | php_mysqli_structs.h | 86 zend_ulong buflen; member
|
/PHP-7.4/ext/pdo_odbc/ |
H A D | odbc_stmt.c | 59 zend_ulong buflen, zend_ulong *outlen) in pdo_odbc_utf82ucs2() argument 62 if (is_unicode && buflen) { in pdo_odbc_utf82ucs2() 66 ret = MultiByteToWideChar(CP_UTF8, 0, buf, buflen, NULL, 0); in pdo_odbc_utf82ucs2() 79 …ret = MultiByteToWideChar(CP_UTF8, 0, buf, buflen, (LPWSTR)S->convbuf, S->convbufsize / sizeof(WCH… in pdo_odbc_utf82ucs2() 94 zend_ulong buflen, zend_ulong *outlen) in pdo_odbc_ucs22utf8() argument 97 if (is_unicode && buflen) { in pdo_odbc_ucs22utf8() 101 ret = WideCharToMultiByte(CP_UTF8, 0, (LPCWSTR)buf, buflen/sizeof(WCHAR), NULL, 0, NULL, NULL); in pdo_odbc_ucs22utf8() 111 …ret = WideCharToMultiByte(CP_UTF8, 0, (LPCWSTR)buf, buflen/sizeof(WCHAR), S->convbuf, S->convbufsi… in pdo_odbc_ucs22utf8()
|
/PHP-7.4/ext/bz2/ |
H A D | bz2_filter.c | 94 while (bin < bucket->buflen) { in php_bz2_decompress_filter() 107 consumed += bucket->buflen; in php_bz2_decompress_filter() 111 desired = bucket->buflen - bin; in php_bz2_decompress_filter() 231 while (bin < bucket->buflen) { in php_bz2_compress_filter() 234 desired = bucket->buflen - bin; in php_bz2_compress_filter()
|
/PHP-7.4/ext/posix/ |
H A D | posix.c | 806 zend_long buflen; in PHP_FUNCTION() local 824 if (buflen < 1) { in PHP_FUNCTION() 827 p = emalloc(buflen); in PHP_FUNCTION() 1088 long buflen; in PHP_FUNCTION() local 1098 if (buflen < 1) { in PHP_FUNCTION() 1101 buf = emalloc(buflen); in PHP_FUNCTION() 1107 buflen *= 2; in PHP_FUNCTION() 1220 long buflen; in PHP_FUNCTION() local 1230 if (buflen < 1) { in PHP_FUNCTION() 1233 buf = emalloc(buflen); in PHP_FUNCTION() [all …]
|
/PHP-7.4/ext/zlib/ |
H A D | zlib_filter.c | 79 while (bin < (unsigned int) bucket->buflen && !data->finished) { in php_zlib_inflate_filter() 81 desired = bucket->buflen - bin; in php_zlib_inflate_filter() 118 consumed += bucket->buflen; in php_zlib_inflate_filter() 198 while (bin < (unsigned int) bucket->buflen) { in php_zlib_deflate_filter() 201 desired = bucket->buflen - bin; in php_zlib_deflate_filter() 233 consumed += bucket->buflen; in php_zlib_deflate_filter()
|
/PHP-7.4/ext/mysqli/tests/ |
H A D | 061.phpt | 26 function my_read($fp, &$buffer, $buflen, &$error) { 27 $buffer = strrev(fread($fp, $buflen));
|
/PHP-7.4/ext/snmp/ |
H A D | snmp.c | 532 int buflen = sizeof(sbuf) - 1; in php_snmp_getvalue() local 560 buflen = val_len; in php_snmp_getvalue() 566 buflen = val_len; in php_snmp_getvalue() 591 snprintf(buf, buflen, "%d.%d.%d.%d", in php_snmp_getvalue() 594 buf[buflen]=0; in php_snmp_getvalue() 603 snprintf(buf, buflen, "%lu", *vars->val.integer); in php_snmp_getvalue() 604 buf[buflen]=0; in php_snmp_getvalue() 609 snprintf(buf, buflen, "%ld", *vars->val.integer); in php_snmp_getvalue() 610 buf[buflen]=0; in php_snmp_getvalue() 616 snprintf(buf, buflen, "%f", *vars->val.floatVal); in php_snmp_getvalue() [all …]
|
/PHP-7.4/ext/pdo/ |
H A D | pdo_dbh.c | 207 static char *dsn_from_uri(char *uri, char *buf, size_t buflen) /* {{{ */ in dsn_from_uri() argument 214 dsn = php_stream_get_line(stream, buf, buflen, NULL); in dsn_from_uri()
|
/PHP-7.4/ext/iconv/ |
H A D | iconv.c | 2823 buckets_out, bucket->buf, bucket->buflen, &consumed, in php_iconv_stream_filter_do_filter()
|
/PHP-7.4/win32/ |
H A D | registry.c | 290 DWORD buflen = MAXPATHLEN; in GetIniPathFromRegistry() local 292 if(RegQueryValueEx(hKey, PHPRC_REGISTRY_NAME, 0, NULL, reg_location, &buflen) != ERROR_SUCCESS) { in GetIniPathFromRegistry()
|
/PHP-7.4/sapi/phpdbg/ |
H A D | phpdbg_out.c | 908 tmp = tmpptr = emalloc(*buflen * 5); in phpdbg_encode_ctrl_chars() 910 for (i = 0; i < *buflen; i++) { in phpdbg_encode_ctrl_chars() 928 *buflen = len; in phpdbg_encode_ctrl_chars() 933 int msgoutlen, xmloutlen, buflen; in phpdbg_process_print() local 1014 buflen = ZSTR_LEN(encoded); in phpdbg_process_print() 1015 memcpy(buf = emalloc(buflen + 1), ZSTR_VAL(encoded), buflen); in phpdbg_process_print() 1017 phpdbg_mixed_write(fd, buf, buflen); in phpdbg_process_print() 1192 int buflen; in phpdbg_xml_internal() local 1215 int buflen; in phpdbg_log_internal() local 1231 int buflen; in phpdbg_out_internal() local [all …]
|
H A D | phpdbg_rinit_hook.c | 61 ssize_t buflen; in PHP_RINIT_FUNCTION() local 80 while ((buflen = recv(s, buf, sizeof(buf) - 1, 0)) > 0) { in PHP_RINIT_FUNCTION() 81 php_write(buf, buflen); in PHP_RINIT_FUNCTION()
|
/PHP-7.4/main/ |
H A D | SAPI.c | 234 SAPI_API size_t sapi_read_post_block(char *buffer, size_t buflen) in sapi_read_post_block() argument 242 read_bytes = sapi_module.read_post(buffer, buflen); in sapi_read_post_block() 248 if (read_bytes < buflen) { in sapi_read_post_block()
|