/PHP-7.3/ext/standard/ |
H A D | crypt_sha256.c | 62 uint32_t buflen; member 210 ctx->buflen = 0; in sha256_init_ctx() 254 if (ctx->buflen != 0) { in sha256_process_bytes() 263 ctx->buflen &= 63; in sha256_process_bytes() 516 buflen -= n; in php_sha256_crypt_r() 520 buflen -= MIN(MAX (0, buflen), (int)salt_len); in php_sha256_crypt_r() 522 if (buflen > 0) { in php_sha256_crypt_r() 524 --buflen; in php_sha256_crypt_r() 550 if (buflen <= 0) { in php_sha256_crypt_r() 593 if (buflen < needed) { in php_sha256_crypt() [all …]
|
H A D | crypt_sha512.c | 56 uint64_t buflen; member 237 ctx->buflen = 0; in sha512_init_ctx() 281 if (ctx->buflen != 0) { in sha512_process_bytes() 286 ctx->buflen += add; in sha512_process_bytes() 291 ctx->buflen &= 127; in sha512_process_bytes() 551 buflen -= n; in php_sha512_crypt_r() 555 buflen -= (int) MIN((size_t) MAX(0, buflen), salt_len); in php_sha512_crypt_r() 557 if (buflen > 0) { in php_sha512_crypt_r() 559 --buflen; in php_sha512_crypt_r() 597 if (buflen <= 0) { in php_sha512_crypt_r() [all …]
|
H A D | php_crypt_r.h | 51 extern char * php_sha512_crypt_r (const char *key, const char *salt, char *buffer, int buflen); 52 extern char * php_sha256_crypt_r (const char *key, const char *salt, char *buffer, int buflen);
|
H A D | user_filters.c | 418 add_property_stringl(return_value, "data", bucket->buf, bucket->buflen); in PHP_FUNCTION() 419 add_property_long(return_value, "datalen", bucket->buflen); in PHP_FUNCTION() 455 if (bucket->buflen != Z_STRLEN_P(pzdata)) { in php_stream_bucket_attach() 457 bucket->buflen = Z_STRLEN_P(pzdata); in php_stream_bucket_attach() 459 memcpy(bucket->buf, Z_STRVAL_P(pzdata), bucket->buflen); in php_stream_bucket_attach() 525 add_property_stringl(return_value, "data", bucket->buf, bucket->buflen); in PHP_FUNCTION() 526 add_property_long(return_value, "datalen", bucket->buflen); in PHP_FUNCTION()
|
H A D | exec.c | 104 size_t buflen, bufl = 0; in php_exec() local 126 buflen = EXEC_INPUT_BUF; in php_exec() 134 if (buflen < (bufl + (b - buf) + EXEC_INPUT_BUF)) { in php_exec() 136 buflen = bufl + EXEC_INPUT_BUF; in php_exec() 137 buf = erealloc(buf, buflen); in php_exec()
|
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() 1658 buckets_out, bucket->buf, bucket->buflen, &consumed, in strfilter_convert_filter() 1776 consumed += bucket->buflen; in consumed_filter_filter() 1982 consumed += bucket->buflen; in php_chunked_filter() [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() 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() 370 stream->readbuflen += bucket->buflen; in php_stream_filter_append_ex() 374 stream->writepos += bucket->buflen; in php_stream_filter_append_ex() 443 flushed_size += bucket->buflen; in _php_stream_filter_flush() [all …]
|
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()
|
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 | xp_socket.c | 245 static inline int sock_sendto(php_netstream_data_t *sock, const char *buf, size_t buflen, int flags, in sock_sendto() argument 251 ret = sendto(sock->socket, buf, XP_SOCK_BUF_SIZE(buflen), flags, addr, XP_SOCK_BUF_SIZE(addrlen)); in sock_sendto() 256 …return ((ret = send(sock->socket, buf, buflen > INT_MAX ? INT_MAX : (int)buflen, flags)) == SOCK_C… in sock_sendto() 258 return ((ret = send(sock->socket, buf, buflen, flags)) == SOCK_CONN_ERR) ? -1 : ret; in sock_sendto() 262 static inline int sock_recvfrom(php_netstream_data_t *sock, char *buf, size_t buflen, int flags, in sock_recvfrom() argument 273 ret = recvfrom(sock->socket, buf, XP_SOCK_BUF_SIZE(buflen), flags, (struct sockaddr*)&sa, &sl); in sock_recvfrom() 278 ret = buflen; in sock_recvfrom() 294 ret = recv(sock->socket, buf, XP_SOCK_BUF_SIZE(buflen), flags); in sock_recvfrom() 399 xparam->inputs.buf, xparam->inputs.buflen, in php_sockop_set_option() 420 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…
|
/PHP-7.3/ext/zip/lib/ |
H A D | zip_utf-8.c | 223 zip_uint32_t buflen, i, offset; in _zip_cp437_to_utf8() local 231 buflen = 1; in _zip_cp437_to_utf8() 233 buflen += _zip_unicode_to_utf8_len(_cp437_to_unicode[cp437buf[i]]); in _zip_cp437_to_utf8() 235 if ((utf8buf=(zip_uint8_t*)malloc(buflen)) == NULL) { in _zip_cp437_to_utf8() 245 utf8buf[buflen-1] = 0; in _zip_cp437_to_utf8() 247 *utf8_lenp = buflen-1; in _zip_cp437_to_utf8()
|
/PHP-7.3/sapi/phpdbg/ |
H A D | phpdbg_out.c | 928 tmp = tmpptr = emalloc(*buflen * 5); in phpdbg_encode_ctrl_chars() 930 for (i = 0; i < *buflen; i++) { in phpdbg_encode_ctrl_chars() 948 *buflen = len; in phpdbg_encode_ctrl_chars() 953 int msgoutlen, xmloutlen, buflen; in phpdbg_process_print() local 1034 buflen = ZSTR_LEN(encoded); in phpdbg_process_print() 1035 memcpy(buf = emalloc(buflen + 1), ZSTR_VAL(encoded), buflen); in phpdbg_process_print() 1037 phpdbg_mixed_write(fd, buf, buflen); in phpdbg_process_print() 1212 int buflen; in phpdbg_xml_internal() local 1235 int buflen; in phpdbg_log_internal() local 1251 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.3/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.3/ext/posix/ |
H A D | posix.c | 795 zend_long buflen; in PHP_FUNCTION() local 813 if (buflen < 1) { in PHP_FUNCTION() 816 p = emalloc(buflen); in PHP_FUNCTION() 1070 long buflen; in PHP_FUNCTION() local 1080 if (buflen < 1) { in PHP_FUNCTION() 1083 buf = emalloc(buflen); in PHP_FUNCTION() 1089 buflen *= 2; in PHP_FUNCTION() 1202 long buflen; in PHP_FUNCTION() local 1212 if (buflen < 1) { in PHP_FUNCTION() 1215 buf = emalloc(buflen); in PHP_FUNCTION() [all …]
|
/PHP-7.3/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() 199 desired = bucket->buflen - bin; in php_zlib_deflate_filter() 229 consumed += bucket->buflen; in php_zlib_deflate_filter()
|
/PHP-7.3/ext/mysqlnd/ |
H A D | mysqlnd_loaddata.c | 147 unsigned int buflen = 4096; 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()
|
/PHP-7.3/ext/bz2/ |
H A D | bz2_filter.c | 93 while (bin < bucket->buflen) { in php_bz2_decompress_filter() 106 consumed += bucket->buflen; in php_bz2_decompress_filter() 110 desired = bucket->buflen - bin; in php_bz2_decompress_filter() 230 while (bin < bucket->buflen) { in php_bz2_compress_filter() 231 desired = bucket->buflen - bin; in php_bz2_compress_filter()
|
/PHP-7.3/TSRM/m4/ |
H A D | ax_func_which_gethostbyname_r.m4 | 105 int buflen = 1024; 107 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */ 125 int buflen = 1024; 127 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
|
/PHP-7.3/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.3/ext/mysqli/tests/ |
H A D | 061.phpt | 26 function my_read($fp, &$buffer, $buflen, &$error) { 27 $buffer = strrev(fread($fp, $buflen));
|
/PHP-7.3/ext/xmlrpc/libxmlrpc/ |
H A D | xml_element.c | 446 int buflen = el->text.len; in xml_element_serialize() local 449 … escaped_str = xml_elem_entity_escape(el->text.str, buflen, &buflen, options->escaping ); in xml_element_serialize() 459 xml_elem_writefunc(fptr, escaped_str, data, buflen); in xml_element_serialize()
|
/PHP-7.3/ext/snmp/ |
H A D | snmp.c | 536 int buflen = sizeof(sbuf) - 1; in php_snmp_getvalue() local 564 buflen = val_len; in php_snmp_getvalue() 570 buflen = val_len; in php_snmp_getvalue() 595 snprintf(buf, buflen, "%d.%d.%d.%d", in php_snmp_getvalue() 598 buf[buflen]=0; in php_snmp_getvalue() 607 snprintf(buf, buflen, "%lu", *vars->val.integer); in php_snmp_getvalue() 608 buf[buflen]=0; in php_snmp_getvalue() 613 snprintf(buf, buflen, "%ld", *vars->val.integer); in php_snmp_getvalue() 614 buf[buflen]=0; in php_snmp_getvalue() 620 snprintf(buf, buflen, "%f", *vars->val.floatVal); in php_snmp_getvalue() [all …]
|
/PHP-7.3/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()
|