/php-src/ext/standard/ |
H A D | crypt_sha256.c | 52 uint32_t buflen; member 200 ctx->buflen = 0; in sha256_init_ctx() 244 if (ctx->buflen != 0) { in sha256_process_bytes() 253 ctx->buflen &= 63; in sha256_process_bytes() 519 buflen -= n; in php_sha256_crypt_r() 523 buflen -= MIN(MAX (0, buflen), (int)salt_len); in php_sha256_crypt_r() 525 if (buflen > 0) { in php_sha256_crypt_r() 527 --buflen; in php_sha256_crypt_r() 553 if (buflen <= 0) { in php_sha256_crypt_r() 604 if (buflen < needed) { in php_sha256_crypt() [all …]
|
H A D | crypt_sha512.c | 50 uint64_t buflen; member 231 ctx->buflen = 0; in sha512_init_ctx() 275 if (ctx->buflen != 0) { in sha512_process_bytes() 280 ctx->buflen += add; in sha512_process_bytes() 285 ctx->buflen &= 127; in sha512_process_bytes() 558 buflen -= n; in php_sha512_crypt_r() 562 buflen -= (int) MIN((size_t) MAX(0, buflen), salt_len); in php_sha512_crypt_r() 564 if (buflen > 0) { in php_sha512_crypt_r() 566 --buflen; in php_sha512_crypt_r() 604 if (buflen <= 0) { in php_sha512_crypt_r() [all …]
|
H A D | php_crypt_r.h | 35 extern char * php_sha512_crypt_r (const char *key, const char *salt, char *buffer, int buflen); 36 extern char * php_sha256_crypt_r (const char *key, const char *salt, char *buffer, int buflen);
|
H A D | user_filters.c | 362 …gl(Z_OBJCE_P(return_value), Z_OBJ_P(return_value), ZEND_STRL("data"), bucket->buf, bucket->buflen); in PHP_FUNCTION() 363 …roperty_long(Z_OBJCE_P(return_value), Z_OBJ_P(return_value), ZEND_STRL("datalen"), bucket->buflen); in PHP_FUNCTION() 364 …erty_long(Z_OBJCE_P(return_value), Z_OBJ_P(return_value), ZEND_STRL("dataLength"), bucket->buflen); in PHP_FUNCTION() 404 if (bucket->buflen != Z_STRLEN_P(pzdata)) { in php_stream_bucket_attach() 406 bucket->buflen = Z_STRLEN_P(pzdata); in php_stream_bucket_attach() 408 memcpy(bucket->buf, Z_STRVAL_P(pzdata), bucket->buflen); in php_stream_bucket_attach() 466 …gl(Z_OBJCE_P(return_value), Z_OBJ_P(return_value), ZEND_STRL("data"), bucket->buf, bucket->buflen); in PHP_FUNCTION() 467 …roperty_long(Z_OBJCE_P(return_value), Z_OBJ_P(return_value), ZEND_STRL("datalen"), bucket->buflen); in PHP_FUNCTION() 468 …erty_long(Z_OBJCE_P(return_value), Z_OBJ_P(return_value), ZEND_STRL("dataLength"), bucket->buflen); in PHP_FUNCTION()
|
H A D | exec.c | 119 size_t buflen, bufl = 0; in php_exec() local 137 buflen = EXEC_INPUT_BUF; in php_exec() 145 if (buflen < (bufl + (b - buf) + EXEC_INPUT_BUF)) { in php_exec() 147 buflen = bufl + EXEC_INPUT_BUF; in php_exec() 148 buf = erealloc(buf, buflen); in php_exec()
|
H A D | filters.c | 46 php_strtr(bucket->buf, bucket->buflen, rot13_from, rot13_to, 52); in strfilter_rot13_filter() 47 consumed += bucket->buflen; in strfilter_rot13_filter() 94 php_strtr(bucket->buf, bucket->buflen, lowercase, uppercase, 26); in strfilter_toupper_filter() 95 consumed += bucket->buflen; in strfilter_toupper_filter() 122 php_strtr(bucket->buf, bucket->buflen, uppercase, lowercase, 26); in strfilter_tolower_filter() 123 consumed += bucket->buflen; in strfilter_tolower_filter() 1513 buckets_out, bucket->buf, bucket->buflen, &consumed, in strfilter_convert_filter() 1631 consumed += bucket->buflen; in consumed_filter_filter() 1847 consumed += bucket->buflen; in php_chunked_filter() 1848 bucket->buflen = php_dechunk(bucket->buf, bucket->buflen, data); in php_chunked_filter()
|
/php-src/main/streams/ |
H A D | filter.c | 81 bucket->buf = pemalloc(buflen, 1); in php_stream_bucket_new() 82 memcpy(bucket->buf, buf, buflen); in php_stream_bucket_new() 83 bucket->buflen = buflen; in php_stream_bucket_new() 87 bucket->buflen = buflen; in php_stream_bucket_new() 118 memcpy(retval->buf, bucket->buf, retval->buflen); in php_stream_bucket_make_writeable() 134 (*left)->buflen = length; in php_stream_bucket_split() 140 (*right)->buflen = in->buflen - length; in php_stream_bucket_split() 369 stream->readbuflen += bucket->buflen; in php_stream_filter_append_ex() 373 stream->writepos += bucket->buflen; in php_stream_filter_append_ex() 442 flushed_size += bucket->buflen; in _php_stream_filter_flush() [all …]
|
H A D | transports.c | 400 PHPAPI int php_stream_xport_recvfrom(php_stream *stream, char *buf, size_t buflen, in php_stream_xport_recvfrom() argument 411 return php_stream_read(stream, buf, buflen); in php_stream_xport_recvfrom() 426 if (recvd_len > buflen) { in php_stream_xport_recvfrom() 427 recvd_len = buflen; in php_stream_xport_recvfrom() 432 buflen -= recvd_len; in php_stream_xport_recvfrom() 435 if (buflen == 0) { in php_stream_xport_recvfrom() 449 param.inputs.buflen = buflen; in php_stream_xport_recvfrom() 469 PHPAPI int php_stream_xport_sendto(php_stream *stream, const char *buf, size_t buflen, in php_stream_xport_sendto() argument 478 return php_stream_write(stream, buf, buflen); in php_stream_xport_sendto() 494 param.inputs.buflen = buflen; in php_stream_xport_sendto()
|
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, 145 size_t buflen; member
|
H A D | xp_socket.c | 275 static inline int sock_sendto(php_netstream_data_t *sock, const char *buf, size_t buflen, int flags, in sock_sendto() argument 281 ret = sendto(sock->socket, buf, XP_SOCK_BUF_SIZE(buflen), flags, addr, XP_SOCK_BUF_SIZE(addrlen)); in sock_sendto() 286 …return ((ret = send(sock->socket, buf, buflen > INT_MAX ? INT_MAX : (int)buflen, flags)) == SOCK_C… in sock_sendto() 288 return ((ret = send(sock->socket, buf, buflen, flags)) == SOCK_CONN_ERR) ? -1 : ret; in sock_sendto() 292 static inline int sock_recvfrom(php_netstream_data_t *sock, char *buf, size_t buflen, int flags, in sock_recvfrom() argument 303 ret = recvfrom(sock->socket, buf, XP_SOCK_BUF_SIZE(buflen), flags, (struct sockaddr*)&sa, &sl); in sock_recvfrom() 308 ret = buflen; in sock_recvfrom() 324 ret = recv(sock->socket, buf, XP_SOCK_BUF_SIZE(buflen), flags); in sock_recvfrom() 441 xparam->inputs.buf, xparam->inputs.buflen, in php_sockop_set_option() 462 xparam->inputs.buf, xparam->inputs.buflen, in php_sockop_set_option()
|
H A D | php_stream_filter_api.h | 45 size_t buflen; member 66 PHPAPI php_stream_bucket *php_stream_bucket_new(php_stream *stream, char *buf, size_t buflen, uint8…
|
H A D | streams.c | 615 stream->readbuflen += bucket->buflen; in _php_stream_fill_read_buffer() 619 if (bucket->buflen) { in _php_stream_fill_read_buffer() 622 stream->writepos += bucket->buflen; in _php_stream_fill_read_buffer() 1520 size_t len = 0, buflen; in _php_stream_copy_to_mem() local 1569 if (maxlen > 0 && buflen > maxlen) { in _php_stream_copy_to_mem() 1570 buflen = maxlen; in _php_stream_copy_to_mem() 1573 buflen = step; in _php_stream_copy_to_mem() 1582 if (len + min_room >= buflen) { in _php_stream_copy_to_mem() 1586 if (maxlen > 0 && buflen + step > maxlen) { in _php_stream_copy_to_mem() 1587 buflen = maxlen; in _php_stream_copy_to_mem() [all …]
|
/php-src/ext/posix/ |
H A D | posix.c | 479 buflen = 32; in PHP_FUNCTION() 483 buflen = 1; in PHP_FUNCTION() 491 buflen *= 2; in PHP_FUNCTION() 788 long buflen; in PHP_FUNCTION() local 800 buflen = 1024; in PHP_FUNCTION() 804 buflen = 1; in PHP_FUNCTION() 813 buflen *= 2; in PHP_FUNCTION() 928 long buflen; in PHP_FUNCTION() local 940 buflen = 1024; in PHP_FUNCTION() 944 buflen = 1; in PHP_FUNCTION() [all …]
|
/php-src/sapi/phpdbg/ |
H A D | phpdbg_out.c | 212 int buflen; in phpdbg_log_internal() local 216 buflen = vasprintf(&buffer, fmt, args); in phpdbg_log_internal() 219 len = phpdbg_mixed_write(fd, buffer, buflen); in phpdbg_log_internal() 228 int buflen; in phpdbg_out_internal() local 236 buflen = vasprintf(&buffer, fmt, args); in phpdbg_out_internal() 239 len = phpdbg_mixed_write(fd, buffer, buflen); in phpdbg_out_internal()
|
/php-src/ext/intl/locale/ |
H A D | locale_methods.c | 349 int32_t buflen = 512; in get_icu_value_internal() local 399 tag_value = zend_string_realloc( tag_value , buflen, 0); in get_icu_value_internal() 401 tag_value = zend_string_alloc( buflen, 0); in get_icu_value_internal() 403 tag_value_len = buflen; in get_icu_value_internal() 424 buflen++; /* add space for \0 */ in get_icu_value_internal() 438 } while( buflen > tag_value_len ); in get_icu_value_internal() 440 if( buflen ==0 ){ in get_icu_value_internal() 561 int32_t buflen = 512; in get_icu_disp_value_src_php() local 613 disp_name = erealloc( disp_name , buflen * sizeof(UChar) ); in get_icu_disp_value_src_php() 614 disp_name_len = buflen; in get_icu_disp_value_src_php() [all …]
|
/php-src/ext/zlib/ |
H A D | zlib_filter.c | 77 while (bin < (unsigned int) bucket->buflen && !data->finished) { in php_zlib_inflate_filter() 79 desired = bucket->buflen - bin; in php_zlib_inflate_filter() 117 consumed += bucket->buflen; in php_zlib_inflate_filter() 197 while (bin < (unsigned int) bucket->buflen) { in php_zlib_deflate_filter() 200 desired = bucket->buflen - bin; in php_zlib_deflate_filter() 232 consumed += bucket->buflen; in php_zlib_deflate_filter()
|
/php-src/ext/mysqlnd/ |
H A D | mysqlnd_loaddata.c | 145 unsigned int buflen = 4096; in mysqlnd_handle_local_infile() local 205 buf = (zend_uchar *) mnd_ecalloc(1, buflen); in mysqlnd_handle_local_infile() 223 …while ((bufsize = infile.local_infile_read (info, buf + MYSQLND_HEADER_SIZE, buflen - MYSQLND_HEAD… in mysqlnd_handle_local_infile()
|
/php-src/ext/bz2/ |
H A D | bz2_filter.c | 92 while (bin < bucket->buflen) { in php_bz2_decompress_filter() 105 consumed += bucket->buflen; in php_bz2_decompress_filter() 109 desired = bucket->buflen - bin; in php_bz2_decompress_filter() 230 while (bin < bucket->buflen) { in php_bz2_compress_filter() 233 desired = bucket->buflen - bin; in php_bz2_compress_filter()
|
/php-src/build/ |
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-src/ext/snmp/ |
H A D | snmp.c | 246 int buflen = sizeof(sbuf) - 1; in php_snmp_getvalue() local 274 buflen = val_len; in php_snmp_getvalue() 280 buflen = val_len; in php_snmp_getvalue() 305 snprintf(buf, buflen, "%d.%d.%d.%d", in php_snmp_getvalue() 308 buf[buflen]=0; in php_snmp_getvalue() 317 snprintf(buf, buflen, "%lu", *vars->val.integer); in php_snmp_getvalue() 318 buf[buflen]=0; in php_snmp_getvalue() 323 snprintf(buf, buflen, "%ld", *vars->val.integer); in php_snmp_getvalue() 324 buf[buflen]=0; in php_snmp_getvalue() 330 snprintf(buf, buflen, "%f", *vars->val.floatVal); in php_snmp_getvalue() [all …]
|
/php-src/win32/ |
H A D | registry.c | 288 DWORD buflen = MAXPATHLEN; in GetIniPathFromRegistry() local 290 if(RegQueryValueEx(hKey, PHPRC_REGISTRY_NAME, 0, NULL, reg_location, &buflen) != ERROR_SUCCESS) { in GetIniPathFromRegistry()
|
/php-src/ext/pdo_odbc/ |
H A D | odbc_stmt.c | 57 zend_ulong buflen, zend_ulong *outlen) in pdo_odbc_utf82ucs2() argument 60 if (is_unicode && buflen) { in pdo_odbc_utf82ucs2() 64 ret = MultiByteToWideChar(CP_UTF8, 0, buf, buflen, NULL, 0); in pdo_odbc_utf82ucs2() 77 …ret = MultiByteToWideChar(CP_UTF8, 0, buf, buflen, (LPWSTR)S->convbuf, S->convbufsize / sizeof(WCH… in pdo_odbc_utf82ucs2()
|
/php-src/ext/session/ |
H A D | mod_files.c | 107 static char *ps_files_path_create(char *buf, size_t buflen, ps_files *data, const zend_string *key) in ps_files_path_create() argument 114 …buflen < (ZSTR_LEN(data->basedir) + 2 * data->dirdepth + ZSTR_LEN(key) + 5 + sizeof(FILE_PREFIX)))… in ps_files_path_create()
|
/php-src/ext/mysqli/ |
H A D | php_mysqli_structs.h | 43 zend_ulong buflen; member
|
/php-src/main/ |
H A D | SAPI.h | 211 SAPI_API size_t sapi_read_post_block(char *buffer, size_t buflen);
|