/PHP-7.0/ext/standard/ |
H A D | crypt_sha256.c | 67 uint32_t buflen; member 215 ctx->buflen = 0; in sha256_init_ctx() 259 if (ctx->buflen != 0) { in sha256_process_bytes() 268 ctx->buflen &= 63; in sha256_process_bytes() 528 buflen -= n; in php_sha256_crypt_r() 532 buflen -= MIN(MAX (0, buflen), (int)salt_len); in php_sha256_crypt_r() 534 if (buflen > 0) { in php_sha256_crypt_r() 536 --buflen; in php_sha256_crypt_r() 562 if (buflen <= 0) { in php_sha256_crypt_r() 605 if (buflen < needed) { in php_sha256_crypt() [all …]
|
H A D | crypt_sha512.c | 61 uint64_t buflen; member 242 ctx->buflen = 0; in sha512_init_ctx() 286 if (ctx->buflen != 0) { in sha512_process_bytes() 291 ctx->buflen += add; in sha512_process_bytes() 296 ctx->buflen &= 127; in sha512_process_bytes() 563 buflen -= n; in php_sha512_crypt_r() 567 buflen -= (int) MIN((size_t) MAX(0, buflen), salt_len); in php_sha512_crypt_r() 569 if (buflen > 0) { in php_sha512_crypt_r() 571 --buflen; in php_sha512_crypt_r() 609 if (buflen <= 0) { in php_sha512_crypt_r() [all …]
|
H A D | php_crypt_r.h | 52 extern char * php_sha512_crypt_r (const char *key, const char *salt, char *buffer, int buflen); 53 extern char * php_sha256_crypt_r (const char *key, const char *salt, char *buffer, int buflen);
|
H A D | user_filters.c | 419 add_property_stringl(return_value, "data", bucket->buf, bucket->buflen); in PHP_FUNCTION() 420 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() 526 add_property_stringl(return_value, "data", bucket->buf, bucket->buflen); in PHP_FUNCTION() 527 add_property_long(return_value, "datalen", bucket->buflen); in PHP_FUNCTION()
|
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()
|
H A D | filters.c | 51 php_strtr(bucket->buf, bucket->buflen, rot13_from, rot13_to, 52); in strfilter_rot13_filter() 52 consumed += bucket->buflen; in strfilter_rot13_filter() 99 php_strtr(bucket->buf, bucket->buflen, lowercase, uppercase, 26); in strfilter_toupper_filter() 100 consumed += bucket->buflen; in strfilter_toupper_filter() 128 consumed += bucket->buflen; in strfilter_tolower_filter() 218 consumed = bucket->buflen; in strfilter_strip_tags_filter() 220 …bucket->buflen = php_strip_tags(bucket->buf, bucket->buflen, &(inst->state), inst->allowed_tags, i… in strfilter_strip_tags_filter() 1684 buckets_out, bucket->buf, bucket->buflen, &consumed, in strfilter_convert_filter() 1802 consumed += bucket->buflen; in consumed_filter_filter() 2012 consumed += bucket->buflen; in php_chunked_filter() [all …]
|
/PHP-7.0/main/streams/ |
H A D | filter.c | 86 bucket->buf = pemalloc(buflen, 1); in php_stream_bucket_new() 93 memcpy(bucket->buf, buf, buflen); in php_stream_bucket_new() 94 bucket->buflen = buflen; in php_stream_bucket_new() 98 bucket->buflen = buflen; in php_stream_bucket_new() 129 memcpy(retval->buf, bucket->buf, retval->buflen); in php_stream_bucket_make_writeable() 149 (*left)->buflen = length; in php_stream_bucket_split() 155 (*right)->buflen = in->buflen - length; in php_stream_bucket_split() 400 stream->readbuflen += bucket->buflen; in php_stream_filter_append_ex() 404 stream->writepos += bucket->buflen; in php_stream_filter_append_ex() 473 flushed_size += bucket->buflen; in _php_stream_filter_flush() [all …]
|
H A D | transports.c | 395 PHPAPI int php_stream_xport_recvfrom(php_stream *stream, char *buf, size_t buflen, in php_stream_xport_recvfrom() argument 406 return php_stream_read(stream, buf, buflen); in php_stream_xport_recvfrom() 421 if (recvd_len > buflen) { in php_stream_xport_recvfrom() 422 recvd_len = buflen; in php_stream_xport_recvfrom() 427 buflen -= recvd_len; in php_stream_xport_recvfrom() 430 if (buflen == 0) { in php_stream_xport_recvfrom() 444 param.inputs.buflen = buflen; in php_stream_xport_recvfrom() 464 PHPAPI int php_stream_xport_sendto(php_stream *stream, const char *buf, size_t buflen, in php_stream_xport_sendto() argument 473 return php_stream_write(stream, buf, buflen); in php_stream_xport_sendto() 489 param.inputs.buflen = buflen; in php_stream_xport_sendto()
|
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, 148 size_t buflen; member
|
H A D | xp_socket.c | 247 static inline int sock_sendto(php_netstream_data_t *sock, const char *buf, size_t buflen, int flags, in sock_sendto() argument 253 ret = sendto(sock->socket, buf, XP_SOCK_BUF_SIZE(buflen), flags, addr, XP_SOCK_BUF_SIZE(addrlen)); in sock_sendto() 258 …return ((ret = send(sock->socket, buf, buflen > INT_MAX ? INT_MAX : (int)buflen, flags)) == SOCK_C… in sock_sendto() 260 return ((ret = send(sock->socket, buf, buflen, flags)) == SOCK_CONN_ERR) ? -1 : ret; in sock_sendto() 264 static inline int sock_recvfrom(php_netstream_data_t *sock, char *buf, size_t buflen, int flags, in sock_recvfrom() argument 275 ret = recvfrom(sock->socket, buf, XP_SOCK_BUF_SIZE(buflen), flags, (struct sockaddr*)&sa, &sl); in sock_recvfrom() 290 ret = recv(sock->socket, buf, XP_SOCK_BUF_SIZE(buflen), flags); in sock_recvfrom() 395 xparam->inputs.buf, xparam->inputs.buflen, in php_sockop_set_option() 416 xparam->inputs.buf, xparam->inputs.buflen, in php_sockop_set_option()
|
H A D | php_stream_filter_api.h | 49 size_t buflen; member 70 PHPAPI php_stream_bucket *php_stream_bucket_new(php_stream *stream, char *buf, size_t buflen, int o…
|
/PHP-7.0/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.0/sapi/phpdbg/ |
H A D | phpdbg_out.c | 929 tmp = tmpptr = emalloc(*buflen * 5); in phpdbg_encode_ctrl_chars() 931 for (i = 0; i < *buflen; i++) { in phpdbg_encode_ctrl_chars() 949 *buflen = len; in phpdbg_encode_ctrl_chars() 954 int msgoutlen, xmloutlen, buflen; in phpdbg_process_print() local 1035 buflen = ZSTR_LEN(encoded); in phpdbg_process_print() 1036 memcpy(buf = emalloc(buflen + 1), ZSTR_VAL(encoded), buflen); in phpdbg_process_print() 1038 phpdbg_mixed_write(fd, buf, buflen); in phpdbg_process_print() 1213 int buflen; in phpdbg_xml_internal() local 1236 int buflen; in phpdbg_log_internal() local 1252 int buflen; in phpdbg_out_internal() local [all …]
|
H A D | phpdbg_rinit_hook.c | 61 int buflen; in PHP_RINIT_FUNCTION() local 76 while ((buflen = recv(s, buf, sizeof(buf) - 1, 0)) > 0) { in PHP_RINIT_FUNCTION() 77 php_write(buf, buflen); in PHP_RINIT_FUNCTION()
|
/PHP-7.0/ext/intl/locale/ |
H A D | locale_methods.c | 268 int32_t buflen = 512; in get_icu_value_internal() local 316 tag_value = zend_string_realloc( tag_value , buflen, 0); in get_icu_value_internal() 318 tag_value = zend_string_alloc( buflen, 0); in get_icu_value_internal() 320 tag_value_len = buflen; in get_icu_value_internal() 341 buflen++; /* add space for \0 */ in get_icu_value_internal() 355 } while( buflen > tag_value_len ); in get_icu_value_internal() 357 if( buflen ==0 ){ in get_icu_value_internal() 498 int32_t buflen = 512; in get_icu_disp_value_src_php() local 556 disp_name_len = buflen; in get_icu_disp_value_src_php() 594 } while( buflen > disp_name_len ); in get_icu_disp_value_src_php() [all …]
|
/PHP-7.0/ext/mcrypt/ |
H A D | mcrypt_filter.c | 58 consumed += bucket->buflen; in php_mcrypt_filter() 63 int chunklen = (int)(bucket->buflen + data->block_used), n; in php_mcrypt_filter() 70 memcpy(outchunk + data->block_used, bucket->buf, bucket->buflen); in php_mcrypt_filter() 94 mcrypt_generic(data->module, bucket->buf, (int)bucket->buflen); in php_mcrypt_filter() 96 mdecrypt_generic(data->module, bucket->buf, (int)bucket->buflen); in php_mcrypt_filter()
|
/PHP-7.0/ext/posix/ |
H A D | posix.c | 788 zend_long buflen; in PHP_FUNCTION() local 806 buflen = sysconf(_SC_TTY_NAME_MAX); in PHP_FUNCTION() 807 if (buflen < 1) { in PHP_FUNCTION() 810 p = emalloc(buflen); in PHP_FUNCTION() 812 if (ttyname_r(fd, p, buflen)) { in PHP_FUNCTION() 1063 long buflen; in PHP_FUNCTION() local 1073 if (buflen < 1) { in PHP_FUNCTION() 1076 buf = emalloc(buflen); in PHP_FUNCTION() 1182 long buflen; in PHP_FUNCTION() local 1192 if (buflen < 1) { in PHP_FUNCTION() [all …]
|
/PHP-7.0/ext/zlib/ |
H A D | zlib_filter.c | 81 while (bin < (unsigned int) bucket->buflen) { in php_zlib_inflate_filter() 84 consumed += bucket->buflen; in php_zlib_inflate_filter() 88 desired = bucket->buflen - bin; in php_zlib_inflate_filter() 128 consumed += bucket->buflen; in php_zlib_inflate_filter() 208 while (bin < (unsigned int) bucket->buflen) { in php_zlib_deflate_filter() 209 desired = bucket->buflen - bin; in php_zlib_deflate_filter() 239 consumed += bucket->buflen; in php_zlib_deflate_filter()
|
/PHP-7.0/ext/mysqlnd/ |
H A D | mysqlnd_loaddata.c | 149 unsigned int buflen = 4096; in mysqlnd_handle_local_infile() local 168 buf = (zend_uchar *) mnd_ecalloc(1, buflen); in mysqlnd_handle_local_infile() 186 …while ((bufsize = infile.local_infile_read (info, buf + MYSQLND_HEADER_SIZE, buflen - MYSQLND_HEAD… in mysqlnd_handle_local_infile()
|
/PHP-7.0/ext/pdo_odbc/ |
H A D | odbc_stmt.c | 61 zend_ulong buflen, zend_ulong *outlen) in pdo_odbc_utf82ucs2() argument 64 if (is_unicode && buflen) { in pdo_odbc_utf82ucs2() 68 ret = MultiByteToWideChar(CP_UTF8, 0, buf, buflen, NULL, 0); in pdo_odbc_utf82ucs2() 81 …ret = MultiByteToWideChar(CP_UTF8, 0, buf, buflen, (LPWSTR)S->convbuf, S->convbufsize / sizeof(WCH… in pdo_odbc_utf82ucs2() 96 zend_ulong buflen, zend_ulong *outlen) in pdo_odbc_ucs22utf8() argument 99 if (is_unicode && buflen) { in pdo_odbc_ucs22utf8() 103 ret = WideCharToMultiByte(CP_UTF8, 0, (LPCWSTR)buf, buflen/sizeof(WCHAR), NULL, 0, NULL, NULL); in pdo_odbc_ucs22utf8() 113 …ret = WideCharToMultiByte(CP_UTF8, 0, (LPCWSTR)buf, buflen/sizeof(WCHAR), S->convbuf, S->convbufsi… in pdo_odbc_ucs22utf8()
|
/PHP-7.0/ext/bz2/ |
H A D | bz2_filter.c | 95 while (bin < bucket->buflen) { in php_bz2_decompress_filter() 108 consumed += bucket->buflen; in php_bz2_decompress_filter() 112 desired = bucket->buflen - bin; in php_bz2_decompress_filter() 232 while (bin < bucket->buflen) { in php_bz2_compress_filter() 233 desired = bucket->buflen - bin; in php_bz2_compress_filter()
|
/PHP-7.0/TSRM/m4/ |
H A D | gethostbyname.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.0/ext/mysqli/tests/ |
H A D | 061.phpt | 24 function my_read($fp, &$buffer, $buflen, &$error) { 25 $buffer = strrev(fread($fp, $buflen));
|
/PHP-7.0/ext/xmlrpc/libxmlrpc/ |
H A D | xml_element.c | 449 int buflen = el->text.len; in xml_element_serialize() local 452 … escaped_str = xml_elem_entity_escape(el->text.str, buflen, &buflen, options->escaping ); in xml_element_serialize() 462 xml_elem_writefunc(fptr, escaped_str, data, buflen); in xml_element_serialize()
|
/PHP-7.0/ext/snmp/ |
H A D | snmp.c | 548 int buflen = sizeof(sbuf) - 1; in php_snmp_getvalue() local 578 buflen = sizeof(sbuf) - 1; in php_snmp_getvalue() 583 buflen = val_len; in php_snmp_getvalue() 589 buflen = val_len; in php_snmp_getvalue() 617 snprintf(buf, buflen, "%d.%d.%d.%d", in php_snmp_getvalue() 620 buf[buflen]=0; in php_snmp_getvalue() 629 snprintf(buf, buflen, "%lu", *vars->val.integer); in php_snmp_getvalue() 630 buf[buflen]=0; in php_snmp_getvalue() 635 snprintf(buf, buflen, "%ld", *vars->val.integer); in php_snmp_getvalue() 636 buf[buflen]=0; in php_snmp_getvalue() [all …]
|