Home
last modified time | relevance | path

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

12

/php-src/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.c406 ZEND_API int zend_user_serialize(zval *object, unsigned char **buffer, size_t *buf_len, zend_serial… in zend_user_serialize() argument
425 *buf_len = Z_STRLEN(retval); in zend_user_serialize()
443 …ize(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, zend_unserialize… in zend_user_unserialize() argument
451 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-src/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()
348 const size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_greet_read() local
680 const size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_auth_response_read() local
839 const size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_ok_read() local
933 const size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_eof_read() local
1061 const size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_rset_header_read() local
1200 const size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_rset_field_read() local
1791 const size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_stats_read() local
1835 const size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_prepare_read() local
[all …]
H A Dmysqlnd_ps_codec.c581 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
584 size_t left = (*buf_len - (*p - *buf)); in mysqlnd_stmt_execute_check_n_enlarge_buffer()
589 *buf_len = offset + needed_bytes + overalloc; in mysqlnd_stmt_execute_check_n_enlarge_buffer()
590 tmp_buf = mnd_emalloc(*buf_len); in mysqlnd_stmt_execute_check_n_enlarge_buffer()
872 …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
886 …if (FAIL == mysqlnd_stmt_execute_check_n_enlarge_buffer(buf, p, buf_len, provided_buffer, null_cou… in mysqlnd_stmt_execute_store_params()
912 …if (FAIL == mysqlnd_stmt_execute_check_n_enlarge_buffer(buf, p, buf_len, provided_buffer, stmt->pa… in mysqlnd_stmt_execute_store_params()
928 …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-src/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 Dfile.h52 …sv(php_stream *stream, char delimiter, char enclosure, int escape_char, size_t buf_len, char *buf);
H A Dfile.c1810 size_t buf_len; in PHP_FUNCTION() local
1867 if ((buf = php_stream_get_line(stream, NULL, 0, &buf_len)) == NULL) { in PHP_FUNCTION()
1872 if (php_stream_get_line(stream, buf, len + 1, &buf_len) == NULL) { in PHP_FUNCTION()
1878 HashTable *values = php_fgetcsv(stream, delimiter, enclosure, escape_char, buf_len, buf); in PHP_FUNCTION()
1895 …_stream *stream, char delimiter, char enclosure, int escape_char, size_t buf_len, char *buf) /* {{… in php_fgetcsv() argument
1912 line_end = limit = (char *)php_fgetcsv_lookup_trailing_spaces(buf, buf_len); in php_fgetcsv()
1913 line_end_len = buf_len - (size_t)(limit - buf); in php_fgetcsv()
1916 temp_len = buf_len; in php_fgetcsv()
2014 buf_len = new_len; in php_fgetcsv()
2018 line_end = limit = (char *)php_fgetcsv_lookup_trailing_spaces(buf, buf_len); in php_fgetcsv()
[all …]
H A Dvar.c1380 PHPAPI void php_unserialize_with_options(zval *return_value, const char *buf, const size_t buf_len,… in php_unserialize_with_options() argument
1388 if (buf_len == 0) { in php_unserialize_with_options()
1461 if (!php_var_unserialize(retval, &p, p + buf_len, &var_hash)) { in php_unserialize_with_options()
1464 (zend_long)((char*)p - buf), buf_len); in php_unserialize_with_options()
1471 if ((char*)p < buf + buf_len) { in php_unserialize_with_options()
1474 (zend_long)((char*)p - buf), buf_len); in php_unserialize_with_options()
1510 size_t buf_len; in PHP_FUNCTION() local
1514 Z_PARAM_STRING(buf, buf_len) in PHP_FUNCTION()
1519 php_unserialize_with_options(return_value, buf, buf_len, options, "unserialize"); in PHP_FUNCTION()
H A Dfilters.c1318 const char *ps, size_t buf_len, size_t *consumed, in strfilter_convert_append_bucket() argument
1334 initial_out_buf_size = buf_len; in strfilter_convert_append_bucket()
1335 icnt = buf_len; in strfilter_convert_append_bucket()
1485 *consumed += buf_len - icnt; in strfilter_convert_append_bucket()
/php-src/ext/spl/
H A Dspl_observer.c869 size_t buf_len; in PHP_METHOD() local
876 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &buf, &buf_len) == FAILURE) { in PHP_METHOD()
880 if (buf_len == 0) { in PHP_METHOD()
894 if (!php_var_unserialize(pcount, &p, s + buf_len, &var_hash) || Z_TYPE_P(pcount) != IS_LONG) { in PHP_METHOD()
919 if (!php_var_unserialize(entry, &p, s + buf_len, &var_hash)) { in PHP_METHOD()
924 if (!php_var_unserialize(&inf, &p, s + buf_len, &var_hash)) { in PHP_METHOD()
965 if (!php_var_unserialize(pmembers, &p, s + buf_len, &var_hash) || Z_TYPE_P(pmembers) != IS_ARRAY) { in PHP_METHOD()
977 …spl_ce_UnexpectedValueException, 0, "Error at offset %zd of %zd bytes", ((char*)p - buf), buf_len); in PHP_METHOD()
H A Dspl_dllist.c1040 size_t buf_len; in PHP_METHOD() local
1044 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &buf, &buf_len) == FAILURE) { in PHP_METHOD()
1048 if (buf_len == 0) { in PHP_METHOD()
1063 if (!php_var_unserialize(flags, &p, s + buf_len, &var_hash) || Z_TYPE_P(flags) != IS_LONG) { in PHP_METHOD()
1073 if (!php_var_unserialize(elem, &p, s + buf_len, &var_hash)) { in PHP_METHOD()
1090 …spl_ce_UnexpectedValueException, 0, "Error at offset %zd of %zd bytes", ((char*)p - buf), buf_len); in PHP_METHOD()
H A Dspl_array.c1297 size_t buf_len; in PHP_METHOD() local
1303 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &buf, &buf_len) == FAILURE) { in PHP_METHOD()
1307 if (buf_len == 0) { in PHP_METHOD()
1326 if (!php_var_unserialize(zflags, &p, s + buf_len, &var_hash) || Z_TYPE_P(zflags) != IS_LONG) { in PHP_METHOD()
1354 if (!php_var_unserialize(array, &p, s + buf_len, &var_hash) in PHP_METHOD()
1384 if (!php_var_unserialize(members, &p, s + buf_len, &var_hash) || Z_TYPE_P(members) != IS_ARRAY) { in PHP_METHOD()
1397 …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.c1928 size_t buf_len = ZSTR_LEN(intern->u.file.current_line); in spl_filesystem_file_read_csv() local
1929 char *buf = estrndup(ZSTR_VAL(intern->u.file.current_line), buf_len); in spl_filesystem_file_read_csv()
1936 HashTable *values = php_fgetcsv(intern->u.file.stream, delimiter, enclosure, escape, buf_len, buf); in spl_filesystem_file_read_csv()
/php-src/win32/
H A Dioutil.c1023 static ssize_t php_win32_ioutil_readlink_int(HANDLE h, wchar_t *buf, size_t buf_len) in php_win32_ioutil_readlink_int() argument
1127 if (reparse_target_len >= buf_len) { in php_win32_ioutil_readlink_int()
1138 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
1157 ret = php_win32_ioutil_readlink_int(h, buf, buf_len); in php_win32_ioutil_readlink_w()
1181 if(target_len >= buf_len || target_len >= PHP_WIN32_IOUTIL_MAXPATHLEN || target_len == 0) { in php_win32_ioutil_readlink_w()
H A Dioutil.h781 PW32IO ssize_t php_win32_ioutil_readlink_w(const wchar_t *path, wchar_t *buf, size_t buf_len);
783 __forceinline static ssize_t php_win32_ioutil_readlink(const char *path, char *buf, size_t buf_len) in php_win32_ioutil_readlink() argument
805 if (!ret_buf || ret_buf_len >= buf_len || ret_buf_len >= MAXPATHLEN) { in php_win32_ioutil_readlink()
/php-src/ext/sockets/
H A Dsockets.c1397 size_t buf_len, retval; local
1403 Z_PARAM_STRING(buf, buf_len)
1416 retval = send(php_sock->bsd_socket, buf, (buf_len < (size_t)len ? buf_len : (size_t)len), flags);
1561 size_t buf_len, addr_len; local
1568 Z_PARAM_STRING(buf, buf_len)
1590 …retval = sendto(php_sock->bsd_socket, buf, ((size_t)len > buf_len) ? buf_len : (size_t)len, flags,…
1607 …retval = sendto(php_sock->bsd_socket, buf, ((size_t)len > buf_len) ? buf_len : (size_t)len, flags,…
1624 …retval = sendto(php_sock->bsd_socket, buf, ((size_t)len > buf_len) ? buf_len : (size_t)len, flags,…
/php-src/ext/pdo_firebird/
H A Dfirebird_driver.c1338 short buf_len = 256, dpb_len; in pdo_firebird_handle_factory() local
1376 if (dpb_values[i] && buf_len > 0) { in pdo_firebird_handle_factory()
1377 dpb_len = slprintf(dpb, buf_len, "%c%c%s", dpb_flags[i], (unsigned char)strlen(dpb_values[i]), in pdo_firebird_handle_factory()
1380 buf_len -= dpb_len; in pdo_firebird_handle_factory()
/php-src/ext/gmp/
H A Dgmp.c487 static int gmp_serialize(zval *object, unsigned char **buffer, size_t *buf_len, zend_serialize_data… in gmp_serialize() argument
505 *buf_len = ZSTR_LEN(buf.s); in gmp_serialize()
512 …ize(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, zend_unserialize… in gmp_unserialize() argument
527 max = buf + buf_len; in gmp_unserialize()
/php-src/main/
H A Dmain.c1218 size_t buf_len; in php_win32_docref1_from_error() local
1220 buf_len = strlen(buf); in php_win32_docref1_from_error()
1221 if (buf_len >= 2) { in php_win32_docref1_from_error()
1222 buf[buf_len - 1] = '\0'; in php_win32_docref1_from_error()
1223 buf[buf_len - 2] = '\0'; in php_win32_docref1_from_error()
/php-src/ext/iconv/
H A Diconv.c2347 const char *ps, size_t buf_len, size_t *consumed, in php_iconv_stream_filter_append_bucket() argument
2361 initial_out_buf_size = buf_len; in php_iconv_stream_filter_append_bucket()
2362 icnt = buf_len; in php_iconv_stream_filter_append_bucket()
2509 *consumed += buf_len - icnt; in php_iconv_stream_filter_append_bucket()
/php-src/ext/soap/
H A Dphp_encoding.c2922 size_t buf_len=64, real_len; in to_xml_datetime_ex() local
2940 buf = (char *) emalloc(buf_len); in to_xml_datetime_ex()
2941 while ((real_len = strftime(buf, buf_len, format, ta)) == buf_len || real_len == 0) { in to_xml_datetime_ex()
2942 buf_len *= 2; in to_xml_datetime_ex()
2943 buf = (char *) erealloc(buf, buf_len); in to_xml_datetime_ex()
2965 if (real_len >= buf_len) { in to_xml_datetime_ex()
/php-src/ext/phar/
H A Dphar.c1595 static inline char *phar_strnstr(const char *buf, int buf_len, const char *search, int search_len) … in phar_strnstr() argument
1600 if (buf_len < search_len) { in phar_strnstr()
1607 if (!(c = memchr(c + 1, search[0], buf_len - search_len - so_far))) { in phar_strnstr()
1613 if (so_far >= (buf_len - search_len)) { in phar_strnstr()
/php-src/ext/date/
H A Dphp_date.c1266 size_t buf_len = 256, real_len; in php_strftime() local
1330 buf = zend_string_alloc(buf_len, 0); in php_strftime()
1331 …while ((real_len = strftime(ZSTR_VAL(buf), buf_len, ZSTR_VAL(format), &ta)) == buf_len || real_len… in php_strftime()
1332 buf_len *= 2; in php_strftime()
1333 buf = zend_string_extend(buf, buf_len, 0); in php_strftime()
1351 if (real_len && real_len != buf_len) { in php_strftime()

Completed in 142 milliseconds

12