/php-src/Zend/ |
H A D | zend_interfaces.h | 74 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 D | zend_interfaces.c | 406 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 D | zend.h | 202 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 D | mysqlnd_wireprotocol.c | 210 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 D | mysqlnd_ps_codec.c | 581 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 D | mysqlnd_loaddata.c | 65 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 D | php_var.h | 62 PHPAPI void php_unserialize_with_options(zval *return_value, const char *buf, const size_t buf_len,…
|
H A D | file.h | 52 …sv(php_stream *stream, char delimiter, char enclosure, int escape_char, size_t buf_len, char *buf);
|
H A D | file.c | 1810 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 D | var.c | 1380 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 D | filters.c | 1318 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 D | spl_observer.c | 869 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 D | spl_dllist.c | 1040 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 D | spl_array.c | 1297 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 D | spl_directory.c | 1922 size_t buf_len = ZSTR_LEN(intern->u.file.current_line); in spl_filesystem_file_read_csv() local 1923 char *buf = estrndup(ZSTR_VAL(intern->u.file.current_line), buf_len); in spl_filesystem_file_read_csv() 1930 HashTable *values = php_fgetcsv(intern->u.file.stream, delimiter, enclosure, escape, buf_len, buf); in spl_filesystem_file_read_csv()
|
/php-src/ext/sockets/ |
H A D | sockets.c | 1393 size_t buf_len, retval; local 1399 Z_PARAM_STRING(buf, buf_len) 1412 retval = send(php_sock->bsd_socket, buf, (buf_len < (size_t)len ? buf_len : (size_t)len), flags); 1557 size_t buf_len, addr_len; local 1564 Z_PARAM_STRING(buf, buf_len) 1586 …retval = sendto(php_sock->bsd_socket, buf, ((size_t)len > buf_len) ? buf_len : (size_t)len, flags,… 1603 …retval = sendto(php_sock->bsd_socket, buf, ((size_t)len > buf_len) ? buf_len : (size_t)len, flags,… 1620 …retval = sendto(php_sock->bsd_socket, buf, ((size_t)len > buf_len) ? buf_len : (size_t)len, flags,…
|
/php-src/win32/ |
H A D | ioutil.c | 1023 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 D | ioutil.h | 781 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/pdo_firebird/ |
H A D | firebird_driver.c | 1338 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/main/ |
H A D | main.c | 1218 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/gmp/ |
H A D | gmp.c | 512 static int gmp_serialize(zval *object, unsigned char **buffer, size_t *buf_len, zend_serialize_data… in gmp_serialize() argument 530 *buf_len = ZSTR_LEN(buf.s); in gmp_serialize() 537 …ize(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, zend_unserialize… in gmp_unserialize() argument 552 max = buf + buf_len; in gmp_unserialize()
|
/php-src/ext/iconv/ |
H A D | iconv.c | 2347 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 D | php_encoding.c | 2922 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 D | phar.c | 1594 static inline char *phar_strnstr(const char *buf, int buf_len, const char *search, int search_len) … in phar_strnstr() argument 1599 if (buf_len < search_len) { in phar_strnstr() 1606 if (!(c = memchr(c + 1, search[0], buf_len - search_len - so_far))) { in phar_strnstr() 1612 if (so_far >= (buf_len - search_len)) { in phar_strnstr()
|
/php-src/ext/date/ |
H A D | php_date.c | 1266 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()
|