/PHP-7.4/ext/phar/ |
H A D | phar.c | 1547 static inline char *phar_strnstr(const char *buf, int buf_len, const char *search, int search_len) … in phar_strnstr() argument 1552 if (buf_len < search_len) { in phar_strnstr() 1559 if (!(c = memchr(c + 1, search[0], buf_len - search_len - so_far))) { in phar_strnstr() 1565 if (so_far >= (buf_len - search_len)) { in phar_strnstr()
|
/PHP-7.4/ext/pgsql/ |
H A D | pgsql.c | 3531 size_t buf_len = PGSQL_LO_READ_BUF_SIZE; local 3545 buf_len = len < 0 ? 0 : len; 3548 buf = zend_string_alloc(buf_len, 0);
|
/PHP-7.4/ext/mysqlnd/ |
H A D | mysqlnd_wireprotocol.c | 211 if (buf_len > 2) { in php_mysqlnd_read_error_from_line() 220 if ((buf_len - (p - buf)) >= MYSQLND_SQLSTATE_LENGTH) { in php_mysqlnd_read_error_from_line() 227 if ((buf_len - (p - buf)) > 0) { in php_mysqlnd_read_error_from_line() 660 buf_len--; in php_mysqlnd_auth_response_read() 858 packet->message_len = MIN(net_len, buf_len - (p - begin)); in php_mysqlnd_ok_read() 910 const size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_eof_read() local 1047 const size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_rset_header_read() local 1188 const size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_rset_field_read() local 1866 const size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_stats_read() local 1913 const size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_prepare_read() local [all …]
|
H A D | mysqlnd_structs.h | 178 typedef int (*func_mysqlnd_local_infile__read)(void * ptr, zend_uchar * buf, unsigned int buf_len);
|
/PHP-7.4/ext/mbstring/ |
H A D | mbstring.c | 5065 size_t buf_len; in php_mb_chr() local 5112 buf_len = 4; in php_mb_chr() 5113 buf = (char *) emalloc(buf_len + 1); in php_mb_chr() 5125 ret_str = php_mb_convert_encoding_ex(buf, buf_len, enc, &mbfl_encoding_ucs4be, &ret_len); in php_mb_chr()
|
/PHP-7.4/ext/date/ |
H A D | php_date.c | 1670 size_t buf_len = 256, real_len; in php_strftime() local 1729 buf = zend_string_alloc(buf_len, 0); in php_strftime() 1730 …while ((real_len = strftime(ZSTR_VAL(buf), buf_len, ZSTR_VAL(format), &ta)) == buf_len || real_len… in php_strftime() 1731 buf_len *= 2; in php_strftime() 1732 buf = zend_string_extend(buf, buf_len, 0); in php_strftime() 1750 if (real_len && real_len != buf_len) { in php_strftime()
|
/PHP-7.4/main/ |
H A D | main.c | 1221 size_t buf_len; in php_win32_docref1_from_error() local 1223 buf_len = strlen(buf); in php_win32_docref1_from_error() 1224 if (buf_len >= 2) { in php_win32_docref1_from_error() 1225 buf[buf_len - 1] = '\0'; in php_win32_docref1_from_error() 1226 buf[buf_len - 2] = '\0'; in php_win32_docref1_from_error() 1234 size_t buf_len; in php_win32_docref2_from_error() local 1236 buf_len = strlen(buf); in php_win32_docref2_from_error() 1237 if (buf_len >= 2) { in php_win32_docref2_from_error() 1238 buf[buf_len - 1] = '\0'; in php_win32_docref2_from_error() 1239 buf[buf_len - 2] = '\0'; in php_win32_docref2_from_error()
|
/PHP-7.4/ext/curl/ |
H A D | interface.c | 1761 static int curl_debug(CURL *cp, curl_infotype type, char *buf, size_t buf_len, void *ctx) /* {{{ */ in curl_debug() argument 1769 ch->header.str = zend_string_init(buf, buf_len, 0); in curl_debug()
|
/PHP-7.4/ext/pdo_firebird/ |
H A D | firebird_driver.c | 643 short buf_len = 256, dpb_len; in pdo_firebird_handle_factory() local 667 if (dpb_values[i] && buf_len > 0) { in pdo_firebird_handle_factory() 668 dpb_len = slprintf(dpb, buf_len, "%c%c%s", dpb_flags[i], (unsigned char)strlen(dpb_values[i]), in pdo_firebird_handle_factory() 671 buf_len -= dpb_len; in pdo_firebird_handle_factory()
|
/PHP-7.4/ext/standard/ |
H A D | var.c | 1202 size_t buf_len; in PHP_FUNCTION() local 1211 Z_PARAM_STRING(buf, buf_len) in PHP_FUNCTION() 1216 if (buf_len == 0) { in PHP_FUNCTION() 1283 if (!php_var_unserialize(retval, &p, p + buf_len, &var_hash)) { in PHP_FUNCTION() 1286 (zend_long)((char*)p - buf), buf_len); in PHP_FUNCTION()
|
H A D | file.c | 1992 size_t buf_len; in PHP_FUNCTION() local 2067 if ((buf = php_stream_get_line(stream, NULL, 0, &buf_len)) == NULL) { in PHP_FUNCTION() 2072 if (php_stream_get_line(stream, buf, len + 1, &buf_len) == NULL) { in PHP_FUNCTION() 2078 php_fgetcsv(stream, delimiter, enclosure, escape, buf_len, buf, return_value); in PHP_FUNCTION() 2082 …_stream *stream, char delimiter, char enclosure, int escape_char, size_t buf_len, char *buf, zval … in php_fgetcsv() argument 2099 tptr = (char *)php_fgetcsv_lookup_trailing_spaces(buf, buf_len, delimiter); in php_fgetcsv() 2100 line_end_len = buf_len - (size_t)(tptr - buf); in php_fgetcsv() 2104 temp_len = buf_len; in php_fgetcsv() 2193 buf_len = new_len; in php_fgetcsv() 2197 line_end = limit = (char *)php_fgetcsv_lookup_trailing_spaces(buf, buf_len, delimiter); in php_fgetcsv() [all …]
|
H A D | filters.c | 1469 const char *ps, size_t buf_len, size_t *consumed, in strfilter_convert_append_bucket() argument 1485 initial_out_buf_size = buf_len; in strfilter_convert_append_bucket() 1486 icnt = buf_len; in strfilter_convert_append_bucket() 1636 *consumed += buf_len - icnt; in strfilter_convert_append_bucket()
|
/PHP-7.4/ext/spl/ |
H A D | spl_directory.c | 2138 size_t buf_len = intern->u.file.current_line_len; in spl_filesystem_file_read_csv() local 2139 char *buf = estrndup(intern->u.file.current_line, buf_len); in spl_filesystem_file_read_csv() 2146 …php_fgetcsv(intern->u.file.stream, delimiter, enclosure, escape, buf_len, buf, &intern->u.file.cur… in spl_filesystem_file_read_csv()
|
H A D | spl_array.c | 1710 size_t buf_len; in SPL_METHOD() local 1716 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &buf, &buf_len) == FAILURE) { in SPL_METHOD() 1720 if (buf_len == 0) { in SPL_METHOD() 1739 if (!php_var_unserialize(zflags, &p, s + buf_len, &var_hash) || Z_TYPE_P(zflags) != IS_LONG) { in SPL_METHOD() 1767 if (!php_var_unserialize(array, &p, s + buf_len, &var_hash) in SPL_METHOD() 1797 if (!php_var_unserialize(members, &p, s + buf_len, &var_hash) || Z_TYPE_P(members) != IS_ARRAY) { in SPL_METHOD() 1810 …eption, 0, "Error at offset " ZEND_LONG_FMT " of %zd bytes", (zend_long)((char*)p - buf), buf_len); in SPL_METHOD()
|
H A D | spl_dllist.c | 1175 size_t buf_len; in SPL_METHOD() local 1179 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &buf, &buf_len) == FAILURE) { in SPL_METHOD() 1183 if (buf_len == 0) { in SPL_METHOD() 1198 if (!php_var_unserialize(flags, &p, s + buf_len, &var_hash) || Z_TYPE_P(flags) != IS_LONG) { in SPL_METHOD() 1208 if (!php_var_unserialize(elem, &p, s + buf_len, &var_hash)) { in SPL_METHOD() 1225 …spl_ce_UnexpectedValueException, 0, "Error at offset %zd of %zd bytes", ((char*)p - buf), buf_len); in SPL_METHOD()
|
H A D | spl_observer.c | 752 size_t buf_len; in SPL_METHOD() local 760 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &buf, &buf_len) == FAILURE) { in SPL_METHOD() 764 if (buf_len == 0) { in SPL_METHOD() 778 if (!php_var_unserialize(pcount, &p, s + buf_len, &var_hash) || Z_TYPE_P(pcount) != IS_LONG) { in SPL_METHOD() 803 if (!php_var_unserialize(&entry, &p, s + buf_len, &var_hash)) { in SPL_METHOD() 809 if (!php_var_unserialize(&inf, &p, s + buf_len, &var_hash)) { in SPL_METHOD() 857 if (!php_var_unserialize(pmembers, &p, s + buf_len, &var_hash) || Z_TYPE_P(pmembers) != IS_ARRAY) { in SPL_METHOD() 869 …spl_ce_UnexpectedValueException, 0, "Error at offset %zd of %zd bytes", ((char*)p - buf), buf_len); in SPL_METHOD()
|
/PHP-7.4/ext/soap/ |
H A D | php_encoding.c | 2840 size_t buf_len=64, real_len; in to_xml_datetime_ex() local 2858 buf = (char *) emalloc(buf_len); in to_xml_datetime_ex() 2859 while ((real_len = strftime(buf, buf_len, format, ta)) == buf_len || real_len == 0) { in to_xml_datetime_ex() 2860 buf_len *= 2; in to_xml_datetime_ex() 2861 buf = (char *) erealloc(buf, buf_len); in to_xml_datetime_ex() 2883 if (real_len >= buf_len) { in to_xml_datetime_ex()
|
/PHP-7.4/ext/gmp/ |
H A D | gmp.c | 568 static int gmp_serialize(zval *object, unsigned char **buffer, size_t *buf_len, zend_serialize_data… in gmp_serialize() argument 586 *buf_len = ZSTR_LEN(buf.s); in gmp_serialize() 593 …ize(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, zend_unserialize… in gmp_unserialize() argument 610 max = buf + buf_len; in gmp_unserialize()
|
/PHP-7.4/ext/sodium/ |
H A D | libsodium.c | 686 size_t buf_len = Z_STRLEN(*buf_zv); in PHP_FUNCTION() local 687 if (buf_len > 0) { in PHP_FUNCTION() 688 sodium_memzero(buf, (size_t) buf_len); in PHP_FUNCTION()
|
/PHP-7.4/win32/ |
H A D | ioutil.h | 767 PW32IO ssize_t php_win32_ioutil_readlink_w(const wchar_t *path, wchar_t *buf, size_t buf_len); 769 __forceinline static ssize_t php_win32_ioutil_readlink(const char *path, char *buf, size_t buf_len) in php_win32_ioutil_readlink() argument 791 if (!ret_buf || ret_buf_len >= buf_len || ret_buf_len >= MAXPATHLEN) { in php_win32_ioutil_readlink()
|
H A D | ioutil.c | 1030 static ssize_t php_win32_ioutil_readlink_int(HANDLE h, wchar_t *buf, size_t buf_len) in php_win32_ioutil_readlink_int() argument 1134 if (reparse_target_len >= buf_len) { in php_win32_ioutil_readlink_int() 1145 PW32IO ssize_t php_win32_ioutil_readlink_w(const wchar_t *path, wchar_t *buf, size_t buf_len) in php_win32_ioutil_readlink_w() argument 1164 ret = php_win32_ioutil_readlink_int(h, buf, buf_len); in php_win32_ioutil_readlink_w() 1188 if(target_len >= buf_len || target_len >= PHP_WIN32_IOUTIL_MAXPATHLEN || target_len == 0) { in php_win32_ioutil_readlink_w()
|
/PHP-7.4/ext/sockets/ |
H A D | sockets.c | 1749 size_t buf_len, retval; local 1753 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "rsll", &arg1, &buf, &buf_len, &len, &flags) == FAILURE… 1766 retval = send(php_sock->bsd_socket, buf, (buf_len < (size_t)len ? buf_len : (size_t)len), flags); 1906 size_t buf_len, addr_len; local 1911 …if (zend_parse_parameters(argc, "rslls|l", &arg1, &buf, &buf_len, &len, &flags, &addr, &addr_len, … 1930 …retval = sendto(php_sock->bsd_socket, buf, ((size_t)len > buf_len) ? buf_len : (size_t)len, flags,… 1946 …retval = sendto(php_sock->bsd_socket, buf, ((size_t)len > buf_len) ? buf_len : (size_t)len, flags,… 1962 …retval = sendto(php_sock->bsd_socket, buf, ((size_t)len > buf_len) ? buf_len : (size_t)len, flags,…
|
/PHP-7.4/ext/iconv/ |
H A D | iconv.c | 2620 const char *ps, size_t buf_len, size_t *consumed, in php_iconv_stream_filter_append_bucket() argument 2634 initial_out_buf_size = buf_len; in php_iconv_stream_filter_append_bucket() 2635 icnt = buf_len; in php_iconv_stream_filter_append_bucket() 2796 *consumed += buf_len - icnt; in php_iconv_stream_filter_append_bucket()
|
/PHP-7.4/Zend/ |
H A D | zend.h | 158 int (*serialize)(zval *object, unsigned char **buffer, size_t *buf_len, zend_serialize_data *data); 159 …int (*unserialize)(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, z…
|
/PHP-7.4/ext/xmlrpc/ |
H A D | xmlrpc-epi-php.c | 1089 int buf_len = 0; in PHP_FUNCTION() local 1105 outBuf = XMLRPC_REQUEST_ToXML(xResponse, &buf_len); in PHP_FUNCTION() 1107 RETVAL_STRINGL(outBuf, buf_len); in PHP_FUNCTION()
|