Home
last modified time | relevance | path

Searched refs:buf_len (Results 1 – 25 of 28) sorted by relevance

12

/PHP-8.3/Zend/
H A Dzend_interfaces.h74 ZEND_API int zend_user_serialize(zval *object, unsigned char **buffer, size_t *buf_len, zend_serial…
75 …ize(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, zend_unserialize…
H A Dzend_interfaces.c402 ZEND_API int zend_user_serialize(zval *object, unsigned char **buffer, size_t *buf_len, zend_serial… in zend_user_serialize() argument
421 *buf_len = Z_STRLEN(retval); in zend_user_serialize()
439 …ize(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, zend_unserialize… in zend_user_unserialize() argument
447 ZVAL_STRINGL(&zdata, (char*)buf, buf_len); in zend_user_unserialize()
H A Dzend.h202 int (*serialize)(zval *object, unsigned char **buffer, size_t *buf_len, zend_serialize_data *data);
203 …int (*unserialize)(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, z…
/PHP-8.3/ext/mysqlnd/
H A Dmysqlnd_wireprotocol.c210 if (buf_len > 2) { in php_mysqlnd_read_error_from_line()
226 if ((buf_len - (p - buf)) > 0) { in php_mysqlnd_read_error_from_line()
333 const size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_greet_read() local
648 const size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_auth_response_read() local
801 const size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_ok_read() local
895 const size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_eof_read() local
1023 const size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_rset_header_read() local
1151 const size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_rset_field_read() local
1729 const size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_stats_read() local
1773 const size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_prepare_read() local
[all …]
H A Dmysqlnd_ps_codec.c509 mysqlnd_stmt_execute_check_n_enlarge_buffer(zend_uchar **buf, zend_uchar **p, size_t * buf_len, zen… in mysqlnd_stmt_execute_check_n_enlarge_buffer() argument
512 size_t left = (*buf_len - (*p - *buf)); in mysqlnd_stmt_execute_check_n_enlarge_buffer()
517 *buf_len = offset + needed_bytes + overalloc; in mysqlnd_stmt_execute_check_n_enlarge_buffer()
518 tmp_buf = mnd_emalloc(*buf_len); in mysqlnd_stmt_execute_check_n_enlarge_buffer()
800 …lnd_stmt_execute_store_params(MYSQLND_STMT * s, zend_uchar **buf, zend_uchar **p, size_t *buf_len ) in mysqlnd_stmt_execute_store_params() argument
814 …if (FAIL == mysqlnd_stmt_execute_check_n_enlarge_buffer(buf, p, buf_len, provided_buffer, null_cou… in mysqlnd_stmt_execute_store_params()
840 …if (FAIL == mysqlnd_stmt_execute_check_n_enlarge_buffer(buf, p, buf_len, provided_buffer, stmt->pa… in mysqlnd_stmt_execute_store_params()
856 …if (FAIL == mysqlnd_stmt_execute_check_n_enlarge_buffer(buf, p, buf_len, provided_buffer, data_siz… in mysqlnd_stmt_execute_store_params()
H A Dmysqlnd_loaddata.c65 int mysqlnd_local_infile_read(void * ptr, zend_uchar * buf, unsigned int buf_len) in mysqlnd_local_infile_read() argument
72 count = (int) php_stream_read(info->fd, (char *) buf, buf_len); in mysqlnd_local_infile_read()
/PHP-8.3/ext/standard/
H A Dphp_var.h62 PHPAPI void php_unserialize_with_options(zval *return_value, const char *buf, const size_t buf_len,…
H A Dvar.c1340 PHPAPI void php_unserialize_with_options(zval *return_value, const char *buf, const size_t buf_len,… in php_unserialize_with_options() argument
1348 if (buf_len == 0) { in php_unserialize_with_options()
1412 if (!php_var_unserialize(retval, &p, p + buf_len, &var_hash)) { in php_unserialize_with_options()
1415 (zend_long)((char*)p - buf), buf_len); in php_unserialize_with_options()
1422 if ((char*)p < buf + buf_len) { in php_unserialize_with_options()
1425 (zend_long)((char*)p - buf), buf_len); in php_unserialize_with_options()
1461 size_t buf_len; in PHP_FUNCTION() local
1465 Z_PARAM_STRING(buf, buf_len) in PHP_FUNCTION()
1470 php_unserialize_with_options(return_value, buf, buf_len, options, "unserialize"); in PHP_FUNCTION()
H A Dfile.h52 …sv(php_stream *stream, char delimiter, char enclosure, int escape_char, size_t buf_len, char *buf);
H A Dfile.c1839 size_t buf_len; in PHP_FUNCTION() local
1907 if ((buf = php_stream_get_line(stream, NULL, 0, &buf_len)) == NULL) { in PHP_FUNCTION()
1912 if (php_stream_get_line(stream, buf, len + 1, &buf_len) == NULL) { in PHP_FUNCTION()
1918 HashTable *values = php_fgetcsv(stream, delimiter, enclosure, escape, buf_len, buf); in PHP_FUNCTION()
1935 …_stream *stream, char delimiter, char enclosure, int escape_char, size_t buf_len, char *buf) /* {{… in php_fgetcsv() argument
1952 line_end = limit = (char *)php_fgetcsv_lookup_trailing_spaces(buf, buf_len); in php_fgetcsv()
1953 line_end_len = buf_len - (size_t)(limit - buf); in php_fgetcsv()
1956 temp_len = buf_len; in php_fgetcsv()
2058 buf_len = new_len; in php_fgetcsv()
2062 line_end = limit = (char *)php_fgetcsv_lookup_trailing_spaces(buf, buf_len); in php_fgetcsv()
[all …]
H A Dfilters.c1330 const char *ps, size_t buf_len, size_t *consumed, in strfilter_convert_append_bucket() argument
1346 initial_out_buf_size = buf_len; in strfilter_convert_append_bucket()
1347 icnt = buf_len; in strfilter_convert_append_bucket()
1497 *consumed += buf_len - icnt; in strfilter_convert_append_bucket()
/PHP-8.3/ext/spl/
H A Dspl_observer.c831 size_t buf_len; in PHP_METHOD() local
838 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &buf, &buf_len) == FAILURE) { in PHP_METHOD()
842 if (buf_len == 0) { in PHP_METHOD()
856 if (!php_var_unserialize(pcount, &p, s + buf_len, &var_hash) || Z_TYPE_P(pcount) != IS_LONG) { in PHP_METHOD()
881 if (!php_var_unserialize(entry, &p, s + buf_len, &var_hash)) { in PHP_METHOD()
886 if (!php_var_unserialize(&inf, &p, s + buf_len, &var_hash)) { in PHP_METHOD()
927 if (!php_var_unserialize(pmembers, &p, s + buf_len, &var_hash) || Z_TYPE_P(pmembers) != IS_ARRAY) { in PHP_METHOD()
939 …spl_ce_UnexpectedValueException, 0, "Error at offset %zd of %zd bytes", ((char*)p - buf), buf_len); in PHP_METHOD()
H A Dspl_dllist.c1050 size_t buf_len; in PHP_METHOD() local
1054 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &buf, &buf_len) == FAILURE) { in PHP_METHOD()
1058 if (buf_len == 0) { in PHP_METHOD()
1073 if (!php_var_unserialize(flags, &p, s + buf_len, &var_hash) || Z_TYPE_P(flags) != IS_LONG) { in PHP_METHOD()
1083 if (!php_var_unserialize(elem, &p, s + buf_len, &var_hash)) { in PHP_METHOD()
1100 …spl_ce_UnexpectedValueException, 0, "Error at offset %zd of %zd bytes", ((char*)p - buf), buf_len); in PHP_METHOD()
H A Dspl_array.c1652 size_t buf_len; in PHP_METHOD() local
1658 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &buf, &buf_len) == FAILURE) { in PHP_METHOD()
1662 if (buf_len == 0) { in PHP_METHOD()
1681 if (!php_var_unserialize(zflags, &p, s + buf_len, &var_hash) || Z_TYPE_P(zflags) != IS_LONG) { in PHP_METHOD()
1709 if (!php_var_unserialize(array, &p, s + buf_len, &var_hash) in PHP_METHOD()
1739 if (!php_var_unserialize(members, &p, s + buf_len, &var_hash) || Z_TYPE_P(members) != IS_ARRAY) { in PHP_METHOD()
1752 …eption, 0, "Error at offset " ZEND_LONG_FMT " of %zd bytes", (zend_long)((char*)p - buf), buf_len); in PHP_METHOD()
H A Dspl_directory.c1940 size_t buf_len = intern->u.file.current_line_len; in spl_filesystem_file_read_csv() local
1941 char *buf = estrndup(intern->u.file.current_line, buf_len); in spl_filesystem_file_read_csv()
1948 HashTable *values = php_fgetcsv(intern->u.file.stream, delimiter, enclosure, escape, buf_len, buf); in spl_filesystem_file_read_csv()
/PHP-8.3/ext/sockets/
H A Dsockets.c1354 size_t buf_len, retval; local
1358 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "Osll", &arg1, socket_ce, &buf, &buf_len, &len, &flags)…
1370 retval = send(php_sock->bsd_socket, buf, (buf_len < (size_t)len ? buf_len : (size_t)len), flags);
1515 size_t buf_len, addr_len; local
1520 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "Oslls|l!", &arg1, socket_ce, &buf, &buf_len, &len, &fl…
1538 …retval = sendto(php_sock->bsd_socket, buf, ((size_t)len > buf_len) ? buf_len : (size_t)len, flags,…
1555 …retval = sendto(php_sock->bsd_socket, buf, ((size_t)len > buf_len) ? buf_len : (size_t)len, flags,…
1572 …retval = sendto(php_sock->bsd_socket, buf, ((size_t)len > buf_len) ? buf_len : (size_t)len, flags,…
/PHP-8.3/win32/
H A Dioutil.c1027 static ssize_t php_win32_ioutil_readlink_int(HANDLE h, wchar_t *buf, size_t buf_len) in php_win32_ioutil_readlink_int() argument
1131 if (reparse_target_len >= buf_len) { in php_win32_ioutil_readlink_int()
1142 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
1161 ret = php_win32_ioutil_readlink_int(h, buf, buf_len); in php_win32_ioutil_readlink_w()
1185 if(target_len >= buf_len || target_len >= PHP_WIN32_IOUTIL_MAXPATHLEN || target_len == 0) { in php_win32_ioutil_readlink_w()
H A Dioutil.h764 PW32IO ssize_t php_win32_ioutil_readlink_w(const wchar_t *path, wchar_t *buf, size_t buf_len);
766 __forceinline static ssize_t php_win32_ioutil_readlink(const char *path, char *buf, size_t buf_len) in php_win32_ioutil_readlink() argument
788 if (!ret_buf || ret_buf_len >= buf_len || ret_buf_len >= MAXPATHLEN) { in php_win32_ioutil_readlink()
/PHP-8.3/ext/pdo_firebird/
H A Dfirebird_driver.c1045 short buf_len = 256, dpb_len; in pdo_firebird_handle_factory() local
1069 if (dpb_values[i] && buf_len > 0) { in pdo_firebird_handle_factory()
1070 dpb_len = slprintf(dpb, buf_len, "%c%c%s", dpb_flags[i], (unsigned char)strlen(dpb_values[i]), in pdo_firebird_handle_factory()
1073 buf_len -= dpb_len; in pdo_firebird_handle_factory()
/PHP-8.3/main/
H A Dmain.c1168 size_t buf_len; in php_win32_docref1_from_error() local
1170 buf_len = strlen(buf); in php_win32_docref1_from_error()
1171 if (buf_len >= 2) { in php_win32_docref1_from_error()
1172 buf[buf_len - 1] = '\0'; in php_win32_docref1_from_error()
1173 buf[buf_len - 2] = '\0'; in php_win32_docref1_from_error()
/PHP-8.3/ext/gmp/
H A Dgmp.c508 static int gmp_serialize(zval *object, unsigned char **buffer, size_t *buf_len, zend_serialize_data… in gmp_serialize() argument
526 *buf_len = ZSTR_LEN(buf.s); in gmp_serialize()
533 …ize(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, zend_unserialize… in gmp_unserialize() argument
548 max = buf + buf_len; in gmp_unserialize()
/PHP-8.3/ext/iconv/
H A Diconv.c2348 const char *ps, size_t buf_len, size_t *consumed, in php_iconv_stream_filter_append_bucket() argument
2362 initial_out_buf_size = buf_len; in php_iconv_stream_filter_append_bucket()
2363 icnt = buf_len; in php_iconv_stream_filter_append_bucket()
2510 *consumed += buf_len - icnt; in php_iconv_stream_filter_append_bucket()
/PHP-8.3/ext/soap/
H A Dphp_encoding.c2909 size_t buf_len=64, real_len; in to_xml_datetime_ex() local
2927 buf = (char *) emalloc(buf_len); in to_xml_datetime_ex()
2928 while ((real_len = strftime(buf, buf_len, format, ta)) == buf_len || real_len == 0) { in to_xml_datetime_ex()
2929 buf_len *= 2; in to_xml_datetime_ex()
2930 buf = (char *) erealloc(buf, buf_len); in to_xml_datetime_ex()
2952 if (real_len >= buf_len) { in to_xml_datetime_ex()
/PHP-8.3/ext/date/
H A Dphp_date.c1257 size_t buf_len = 256, real_len; in php_strftime() local
1321 buf = zend_string_alloc(buf_len, 0); in php_strftime()
1322 …while ((real_len = strftime(ZSTR_VAL(buf), buf_len, ZSTR_VAL(format), &ta)) == buf_len || real_len… in php_strftime()
1323 buf_len *= 2; in php_strftime()
1324 buf = zend_string_extend(buf, buf_len, 0); in php_strftime()
1342 if (real_len && real_len != buf_len) { in php_strftime()
/PHP-8.3/ext/phar/
H A Dphar.c1592 static inline char *phar_strnstr(const char *buf, int buf_len, const char *search, int search_len) … in phar_strnstr() argument
1597 if (buf_len < search_len) { in phar_strnstr()
1604 if (!(c = memchr(c + 1, search[0], buf_len - search_len - so_far))) { in phar_strnstr()
1610 if (so_far >= (buf_len - search_len)) { in phar_strnstr()

Completed in 137 milliseconds

12