Home
last modified time | relevance | path

Searched refs:buflen (Results 1 – 25 of 47) sorted by relevance

12

/PHP-5.3/ext/standard/
H A Dcrypt_sha256.c73 uint32_t buflen; member
221 ctx->buflen = 0; in sha256_init_ctx()
270 ctx->buflen += add; in sha256_process_bytes()
274 ctx->buflen &= 63; in sha256_process_bytes()
534 buflen -= n; in php_sha256_crypt_r()
538 buflen -= MIN((size_t) MAX (0, buflen), salt_len); in php_sha256_crypt_r()
540 if (buflen > 0) { in php_sha256_crypt_r()
542 --buflen; in php_sha256_crypt_r()
568 if (buflen <= 0) { in php_sha256_crypt_r()
607 static int buflen; in php_sha256_crypt() local
[all …]
H A Dcrypt_sha512.c67 uint64_t buflen; member
248 ctx->buflen = 0; in sha512_init_ctx()
297 ctx->buflen += add; in sha512_process_bytes()
302 ctx->buflen &= 127; in sha512_process_bytes()
569 buflen -= n; in php_sha512_crypt_r()
573 buflen -= (int) MIN((size_t) MAX(0, buflen), salt_len); in php_sha512_crypt_r()
575 if (buflen > 0) { in php_sha512_crypt_r()
577 --buflen; in php_sha512_crypt_r()
615 if (buflen <= 0) { in php_sha512_crypt_r()
653 static int buflen; in php_sha512_crypt() local
[all …]
H A Dphp_crypt_r.h52 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 Dexec.c68 size_t buflen, bufl = 0; in php_exec() local
120 buflen = EXEC_INPUT_BUF; in php_exec()
128 if (buflen < (bufl + (b - buf) + EXEC_INPUT_BUF)) { in php_exec()
130 buflen = bufl + EXEC_INPUT_BUF; in php_exec()
131 buf = erealloc(buf, buflen); in php_exec()
H A Duser_filters.c435 add_property_stringl(return_value, "data", bucket->buf, bucket->buflen, 1); in PHP_FUNCTION()
436 add_property_long(return_value, "datalen", bucket->buflen); in PHP_FUNCTION()
465 if ((int)bucket->buflen != Z_STRLEN_PP(pzdata)) { in php_stream_bucket_attach()
467 bucket->buflen = Z_STRLEN_PP(pzdata); in php_stream_bucket_attach()
469 memcpy(bucket->buf, Z_STRVAL_PP(pzdata), bucket->buflen); in php_stream_bucket_attach()
537 add_property_stringl(return_value, "data", bucket->buf, bucket->buflen, 1); in PHP_FUNCTION()
538 add_property_long(return_value, "datalen", bucket->buflen); in PHP_FUNCTION()
/PHP-5.3/main/streams/
H A Dfilter.c88 bucket->buf = pemalloc(buflen, 1); in php_stream_bucket_new()
95 memcpy(bucket->buf, buf, buflen); in php_stream_bucket_new()
96 bucket->buflen = buflen; in php_stream_bucket_new()
100 bucket->buflen = buflen; in php_stream_bucket_new()
131 memcpy(retval->buf, bucket->buf, retval->buflen); in php_stream_bucket_make_writeable()
151 (*left)->buflen = length; in php_stream_bucket_split()
157 (*right)->buflen = in->buflen - length; in php_stream_bucket_split()
402 stream->readbuflen += bucket->buflen; in php_stream_filter_append_ex()
406 stream->writepos += bucket->buflen; in php_stream_filter_append_ex()
475 flushed_size += bucket->buflen; in _php_stream_filter_flush()
[all …]
H A Dtransports.c397 PHPAPI int php_stream_xport_recvfrom(php_stream *stream, char *buf, size_t buflen, in php_stream_xport_recvfrom() argument
408 return php_stream_read(stream, buf, buflen); in php_stream_xport_recvfrom()
423 if (recvd_len > buflen) { in php_stream_xport_recvfrom()
424 recvd_len = buflen; in php_stream_xport_recvfrom()
429 buflen -= recvd_len; in php_stream_xport_recvfrom()
432 if (buflen == 0) { in php_stream_xport_recvfrom()
446 param.inputs.buflen = buflen; in php_stream_xport_recvfrom()
467 PHPAPI int php_stream_xport_sendto(php_stream *stream, const char *buf, size_t buflen, in php_stream_xport_sendto() argument
476 return php_stream_write(stream, buf, buflen); in php_stream_xport_sendto()
492 param.inputs.buflen = buflen; in php_stream_xport_sendto()
H A Dphp_stream_transport.h103 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,
150 size_t buflen; member
H A Dxp_socket.c233 static inline int sock_sendto(php_netstream_data_t *sock, char *buf, size_t buflen, int flags, in sock_sendto() argument
239 ret = sendto(sock->socket, buf, buflen, flags, addr, addrlen); in sock_sendto()
242 return ((ret = send(sock->socket, buf, buflen, flags)) == SOCK_CONN_ERR) ? -1 : ret; in sock_sendto()
245 static inline int sock_recvfrom(php_netstream_data_t *sock, char *buf, size_t buflen, int flags, in sock_recvfrom() argument
256 ret = recvfrom(sock->socket, buf, buflen, flags, (struct sockaddr*)&sa, &sl); in sock_recvfrom()
261 ret = recv(sock->socket, buf, buflen, flags); in sock_recvfrom()
354 xparam->inputs.buf, xparam->inputs.buflen, in php_sockop_set_option()
375 xparam->inputs.buf, xparam->inputs.buflen, in php_sockop_set_option()
/PHP-5.3/ext/mysqli/tests/
H A Dmysqli_set_local_infile_handler_replace_buffer.phpt33 function callback_replace_buffer($fp, &$buffer, $buflen, &$error) {
39 $buffer = fread($fp, $buflen);
44 $num_chars = ((version_compare(PHP_VERSION, '5.9.9', '>') == 1)) ? floor($buflen / 2) : $buflen;
H A Dmysqli_set_local_infile_handler.phpt30 function callback_simple($fp, &$buffer, $buflen, &$error) {
40 if (!$buffer = fread($fp, $buflen)) {
51 …tf("[014] Test is too simple to handle a buffer of size %d that cannot hold all lines\n", $buflen);
75 function callback_fclose($fp, &$buffer, $buflen, &$error) {
84 function callback_closefile($fp, &$buffer, $buflen, &$error) {
98 function callback_invalid_args($fp, &$buffer, $buflen) {
102 $buffer = fread($fp, $buflen);
107 function callback_error($fp, &$buffer, $buflen, &$error) {
111 $buffer = fread($fp, $buflen);
H A Dmysqli_set_local_infile_handler_nested_call.phpt33 function callback_simple($fp, &$buffer, $buflen, &$error) {
43 if (!$buffer = fread($fp, $buflen)) {
54 …tf("[014] Test is too simple to handle a buffer of size %d that cannot hold all lines\n", $buflen);
79 function callback_report_short_len($fp, &$buffer, $buflen, &$error) {
83 return callback_simple($fp, $buffer, $buflen, $error);
H A Dmysqli_set_local_infile_handler_buffer_overflow.phpt33 function callback_buffer_overflow($fp, &$buffer, $buflen, &$error) {
37 $buffer = fread($fp, $buflen);
39 $buffer = str_repeat(';', $buflen * 2);
H A Dmysqli_set_local_infile_handler_negative_len.phpt2 mysqli_set_local_infile_handler() - negative return value/buflen to indicate an error
33 function callback_negative_len($fp, &$buffer, $buflen, &$error) {
37 $buffer = fread($fp, $buflen);
H A Dmysqli_set_local_infile_handler_bad_character.phpt33 function callback_bad_character($fp, &$buffer, $buflen, &$error) {
38 …rs = (version_compare(PHP_VERSION, '5.9.9', '>') == 1) ? (floor($buflen / 2) - 10) : ($buflen - 5);
H A Dmysqli_set_local_infile_handler_closures.phpt33 $callback_replace_buffer = function ($fp, &$buffer, $buflen, &$error) {
39 $buffer = fread($fp, $buflen);
H A Dmysqli_set_local_infile_handler_short_len.phpt33 function callback_short_len($fp, &$buffer, $buflen, &$error) {
43 if (!$buffer = fread($fp, $buflen)) {
54 …tf("[014] Test is too simple to handle a buffer of size %d that cannot hold all lines\n", $buflen);
H A Dmysqli_set_local_infile_default.phpt46 function callback_simple($fp, &$buffer, $buflen, &$error) {
56 if (!$buffer = fread($fp, $buflen)) {
67 …tf("[014] Test is too simple to handle a buffer of size %d that cannot hold all lines\n", $buflen);
H A Dmysqli_set_local_infile_handler_openbasedir.phpt50 function callback_simple($fp, &$buffer, $buflen, &$error) {
60 if (!$buffer = fread($fp, $buflen)) {
71 …tf("[014] Test is too simple to handle a buffer of size %d that cannot hold all lines\n", $buflen);
/PHP-5.3/ext/intl/locale/
H A Dlocale_methods.c263 int32_t buflen = 512; in get_icu_value_internal() local
307 tag_value = erealloc( tag_value , buflen ); in get_icu_value_internal()
308 tag_value_len = buflen; in get_icu_value_internal()
311 buflen = uloc_getScript ( mod_loc_name ,tag_value , tag_value_len , &status); in get_icu_value_internal()
317 buflen = uloc_getCountry ( mod_loc_name ,tag_value , tag_value_len , &status); in get_icu_value_internal()
342 } while( buflen > tag_value_len ); in get_icu_value_internal()
344 if( buflen ==0 ){ in get_icu_value_internal()
479 int32_t buflen = 512; in get_icu_disp_value_src_php() local
537 disp_name = erealloc( disp_name , buflen * sizeof(UChar) ); in get_icu_disp_value_src_php()
538 disp_name_len = buflen; in get_icu_disp_value_src_php()
[all …]
/PHP-5.3/ext/posix/
H A Dposix.c727 long buflen; in PHP_FUNCTION() local
745 buflen = sysconf(_SC_TTY_NAME_MAX); in PHP_FUNCTION()
746 if (buflen < 1) { in PHP_FUNCTION()
749 p = emalloc(buflen); in PHP_FUNCTION()
751 if (ttyname_r(fd, p, buflen)) { in PHP_FUNCTION()
1013 long buflen; in PHP_FUNCTION() local
1023 if (buflen < 1) { in PHP_FUNCTION()
1026 buf = emalloc(buflen); in PHP_FUNCTION()
1132 long buflen; in PHP_FUNCTION() local
1142 if (buflen < 1) { in PHP_FUNCTION()
[all …]
/PHP-5.3/ext/mcrypt/
H A Dmcrypt_filter.c58 consumed += bucket->buflen; in php_mcrypt_filter()
63 int chunklen = 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, bucket->buflen); in php_mcrypt_filter()
96 mdecrypt_generic(data->module, bucket->buf, bucket->buflen); in php_mcrypt_filter()
/PHP-5.3/ext/mysqlnd/
H A Dmysqlnd_loaddata.c179 unsigned int buflen = 4096; in mysqlnd_handle_local_infile() local
197 buf = (char *)mnd_ecalloc(1, buflen); in mysqlnd_handle_local_infile()
214 …while ((bufsize = infile.local_infile_read (info, buf + MYSQLND_HEADER_SIZE, buflen - MYSQLND_HEAD… in mysqlnd_handle_local_infile()
/PHP-5.3/ext/zip/lib/
H A Dzip_open.c169 _zip_readcdir(FILE *fp, off_t buf_offset, unsigned char *buf, unsigned char *eocd, int buflen, in _zip_readcdir() argument
177 comlen = buf + buflen - eocd - EOCDLEN; in _zip_readcdir()
516 int a, best, buflen, i; in _zip_find_central_dir() local
534 buflen = fread(buf, 1, CDBUFSIZE, fp); in _zip_find_central_dir()
547 while ((match=_zip_memmem(match, buflen-(match-buf)-18, in _zip_find_central_dir()
552 if ((cdirnew=_zip_readcdir(fp, buf_offset, buf, match-1, buflen, flags, in _zip_find_central_dir()
/PHP-5.3/ext/pdo_odbc/
H A Dodbc_stmt.c61 unsigned long buflen, unsigned long *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 unsigned long buflen, unsigned long *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()

Completed in 56 milliseconds

12