/PHP-7.1/ext/mysqlnd/ |
H A D | mysqlnd_connection.h | 47 #define SET_NEW_MESSAGE(buf, buf_len, message, len, persistent) \ argument 57 (buf_len) = (len); \ 60 #define SET_EMPTY_MESSAGE(buf, buf_len, persistent) \ argument 66 (buf_len) = 0; \
|
H A D | mysqlnd_loaddata.c | 67 int mysqlnd_local_infile_read(void * ptr, zend_uchar * buf, unsigned int buf_len) in mysqlnd_local_infile_read() argument 74 count = (int) php_stream_read(info->fd, (char *) buf, buf_len); in mysqlnd_local_infile_read()
|
H A D | mysqlnd_ps_codec.c | 547 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 550 size_t left = (*buf_len - (*p - *buf)); in mysqlnd_stmt_execute_check_n_enlarge_buffer() 555 *buf_len = offset + needed_bytes + overalloc; in mysqlnd_stmt_execute_check_n_enlarge_buffer() 556 tmp_buf = mnd_emalloc(*buf_len); in mysqlnd_stmt_execute_check_n_enlarge_buffer() 832 …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 846 …if (FAIL == mysqlnd_stmt_execute_check_n_enlarge_buffer(buf, p, buf_len, provided_buffer, null_cou… in mysqlnd_stmt_execute_store_params() 872 …if (FAIL == mysqlnd_stmt_execute_check_n_enlarge_buffer(buf, p, buf_len, provided_buffer, stmt->pa… in mysqlnd_stmt_execute_store_params() 888 …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_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() 677 buf_len--; in php_mysqlnd_auth_response_read() 886 packet->message_len = MIN(net_len, buf_len - (p - begin)); in php_mysqlnd_ok_read() 941 size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_eof_read() local 1101 size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_rset_header_read() local 1246 size_t buf_len = pfc->cmd_buffer.length, total_len = 0; in php_mysqlnd_rset_field_read() local 1949 size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_stats_read() local 1999 size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_prepare_read() local [all …]
|
/PHP-7.1/Zend/ |
H A D | zend_interfaces.h | 75 ZEND_API int zend_user_serialize(zval *object, unsigned char **buffer, size_t *buf_len, zend_serial… 76 …ize(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, zend_unserialize… 78 ZEND_API int zend_class_serialize_deny(zval *object, unsigned char **buffer, size_t *buf_len, zend_… 79 …eny(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, zend_unserialize…
|
H A D | zend_interfaces.c | 407 ZEND_API int zend_user_serialize(zval *object, unsigned char **buffer, size_t *buf_len, zend_serial… in zend_user_serialize() argument 426 *buf_len = Z_STRLEN(retval); in zend_user_serialize() 444 …ize(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, zend_unserialize… in zend_user_unserialize() argument 452 ZVAL_STRINGL(&zdata, (char*)buf, buf_len); in zend_user_unserialize() 466 ZEND_API int zend_class_serialize_deny(zval *object, unsigned char **buffer, size_t *buf_len, zend_… in zend_class_serialize_deny() argument 474 …eny(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, zend_unserialize… in zend_class_unserialize_deny() argument
|
H A D | zend.h | 155 int (*serialize)(zval *object, unsigned char **buffer, size_t *buf_len, zend_serialize_data *data); 156 …int (*unserialize)(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, z…
|
/PHP-7.1/ext/xmlrpc/libxmlrpc/ |
H A D | xml_element.h | 162 char* xml_elem_serialize_to_string(xml_element *el, XML_ELEM_OUTPUT_OPTIONS options, int *buf_len);
|
H A D | xmlrpc.h | 375 char* XMLRPC_REQUEST_ToXML(XMLRPC_REQUEST request, int *buf_len); 376 char* XMLRPC_VALUE_ToXML(XMLRPC_VALUE val, int* buf_len);
|
H A D | xml_element.c | 537 char* xml_elem_serialize_to_string(xml_element *el, XML_ELEM_OUTPUT_OPTIONS options, int *buf_len) in xml_elem_serialize_to_string() argument 544 if(buf_len) { in xml_elem_serialize_to_string() 545 *buf_len = buf.len; in xml_elem_serialize_to_string()
|
H A D | xmlrpc.c | 663 char* XMLRPC_VALUE_ToXML(XMLRPC_VALUE val, int* buf_len) { in XMLRPC_VALUE_ToXML() argument 668 pRet = xml_elem_serialize_to_string(root_elem, NULL, buf_len); in XMLRPC_VALUE_ToXML() 697 char* XMLRPC_REQUEST_ToXML(XMLRPC_REQUEST request, int* buf_len) { in XMLRPC_REQUEST_ToXML() argument 716 buf_len); in XMLRPC_REQUEST_ToXML()
|
/PHP-7.1/ext/interbase/ |
H A D | interbase.c | 853 short i, dpb_len, buf_len = 257-2; /* version byte at the front, and a null at the end */ in _php_ibase_attach_db() local 859 if (dpb_args[i] && args[i] && len[i] && buf_len > 0) { in _php_ibase_attach_db() 860 dpb_len = slprintf(dpb, buf_len, "%c%c%s", dpb_args[i],(unsigned char)len[i],args[i]); in _php_ibase_attach_db() 862 buf_len -= dpb_len; in _php_ibase_attach_db() 865 if (largs[BUF] && buf_len > 0) { in _php_ibase_attach_db() 866 dpb_len = slprintf(dpb, buf_len, "%c\2%c%c", isc_dpb_num_buffers, in _php_ibase_attach_db() 869 buf_len -= dpb_len; in _php_ibase_attach_db() 871 if (largs[SYNC] && buf_len > 0) { in _php_ibase_attach_db() 872 …dpb_len = slprintf(dpb, buf_len, "%c\1%c", isc_dpb_force_write, largs[SYNC] == isc_spb_prp_wm_sync… in _php_ibase_attach_db() 874 buf_len -= dpb_len; in _php_ibase_attach_db()
|
/PHP-7.1/ext/spl/ |
H A D | spl_observer.c | 758 size_t buf_len; in SPL_METHOD() local 766 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &buf, &buf_len) == FAILURE) { in SPL_METHOD() 770 if (buf_len == 0) { in SPL_METHOD() 784 if (!php_var_unserialize(pcount, &p, s + buf_len, &var_hash) || Z_TYPE_P(pcount) != IS_LONG) { in SPL_METHOD() 806 if (!php_var_unserialize(&entry, &p, s + buf_len, &var_hash)) { in SPL_METHOD() 811 if (!php_var_unserialize(&inf, &p, s + buf_len, &var_hash)) { in SPL_METHOD() 858 if (!php_var_unserialize(pmembers, &p, s + buf_len, &var_hash) || Z_TYPE_P(pmembers) != IS_ARRAY) { in SPL_METHOD() 870 …spl_ce_UnexpectedValueException, 0, "Error at offset %zd of %zd bytes", ((char*)p - buf), buf_len); in SPL_METHOD()
|
H A D | spl_dllist.c | 1182 size_t buf_len; in SPL_METHOD() local 1186 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &buf, &buf_len) == FAILURE) { in SPL_METHOD() 1190 if (buf_len == 0) { in SPL_METHOD() 1199 if (!php_var_unserialize(flags, &p, s + buf_len, &var_hash) || Z_TYPE_P(flags) != IS_LONG) { in SPL_METHOD() 1209 if (!php_var_unserialize(elem, &p, s + buf_len, &var_hash)) { in SPL_METHOD() 1226 …spl_ce_UnexpectedValueException, 0, "Error at offset %zd of %zd bytes", ((char*)p - buf), buf_len); in SPL_METHOD()
|
H A D | spl_array.c | 1757 size_t buf_len; in SPL_METHOD() local 1763 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &buf, &buf_len) == FAILURE) { in SPL_METHOD() 1767 if (buf_len == 0) { in SPL_METHOD() 1786 if (!php_var_unserialize(zflags, &p, s + buf_len, &var_hash) || Z_TYPE_P(zflags) != IS_LONG) { in SPL_METHOD() 1814 if (!php_var_unserialize(array, &p, s + buf_len, &var_hash) in SPL_METHOD() 1842 if (!php_var_unserialize(members, &p, s + buf_len, &var_hash) || Z_TYPE_P(members) != IS_ARRAY) { in SPL_METHOD() 1855 …eption, 0, "Error at offset " ZEND_LONG_FMT " of %zd bytes", (zend_long)((char*)p - buf), buf_len); in SPL_METHOD()
|
/PHP-7.1/ext/pdo_firebird/ |
H A D | firebird_driver.c | 667 short buf_len = 256, dpb_len; in pdo_firebird_handle_factory() local 683 if (dpb_values[i] && buf_len > 0) { in pdo_firebird_handle_factory() 684 dpb_len = slprintf(dpb, buf_len, "%c%c%s", dpb_flags[i], (unsigned char)strlen(dpb_values[i]), in pdo_firebird_handle_factory() 687 buf_len -= dpb_len; in pdo_firebird_handle_factory()
|
/PHP-7.1/ext/sockets/ |
H A D | sockets.c | 1655 size_t buf_len, retval; local 1659 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "rsll", &arg1, &buf, &buf_len, &len, &flags) == FAILURE… 1672 retval = send(php_sock->bsd_socket, buf, (buf_len < (size_t)len ? buf_len : (size_t)len), flags); 1821 size_t buf_len, addr_len; local 1826 …if (zend_parse_parameters(argc, "rslls|l", &arg1, &buf, &buf_len, &len, &flags, &addr, &addr_len, … 1845 …retval = sendto(php_sock->bsd_socket, buf, ((size_t)len > buf_len) ? buf_len : (size_t)len, flags,… 1861 …retval = sendto(php_sock->bsd_socket, buf, ((size_t)len > buf_len) ? buf_len : (size_t)len, flags,… 1877 …retval = sendto(php_sock->bsd_socket, buf, ((size_t)len > buf_len) ? buf_len : (size_t)len, flags,…
|
/PHP-7.1/ext/standard/ |
H A D | file.c | 1953 size_t buf_len; in PHP_FUNCTION() local 2026 if ((buf = php_stream_get_line(stream, NULL, 0, &buf_len)) == NULL) { in PHP_FUNCTION() 2031 if (php_stream_get_line(stream, buf, len + 1, &buf_len) == NULL) { in PHP_FUNCTION() 2037 php_fgetcsv(stream, delimiter, enclosure, escape, buf_len, buf, return_value); in PHP_FUNCTION() 2041 …stream *stream, char delimiter, char enclosure, char escape_char, size_t buf_len, char *buf, zval … in php_fgetcsv() argument 2056 tptr = (char *)php_fgetcsv_lookup_trailing_spaces(buf, buf_len, delimiter); in php_fgetcsv() 2057 line_end_len = buf_len - (size_t)(tptr - buf); in php_fgetcsv() 2061 temp_len = buf_len; in php_fgetcsv() 2150 buf_len = new_len; in php_fgetcsv() 2154 line_end = limit = (char *)php_fgetcsv_lookup_trailing_spaces(buf, buf_len, delimiter); in php_fgetcsv() [all …]
|
H A D | file.h | 84 …stream *stream, char delimiter, char enclosure, char escape_char, size_t buf_len, char *buf, zval …
|
H A D | var.c | 1068 size_t buf_len; in PHP_FUNCTION() local 1075 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|a", &buf, &buf_len, &options) == FAILURE) { in PHP_FUNCTION() 1079 if (buf_len == 0) { in PHP_FUNCTION() 1114 if (!php_var_unserialize(retval, &p, p + buf_len, &var_hash)) { in PHP_FUNCTION() 1117 (zend_long)((char*)p - buf), buf_len); in PHP_FUNCTION()
|
H A D | filters.c | 1470 const char *ps, size_t buf_len, size_t *consumed, in strfilter_convert_append_bucket() argument 1486 initial_out_buf_size = buf_len; in strfilter_convert_append_bucket() 1487 icnt = buf_len; in strfilter_convert_append_bucket() 1658 *consumed += buf_len - icnt; in strfilter_convert_append_bucket()
|
/PHP-7.1/ext/xmlrpc/ |
H A D | xmlrpc-epi-php.c | 1086 int buf_len = 0; in PHP_FUNCTION() local 1102 outBuf = XMLRPC_REQUEST_ToXML(xResponse, &buf_len); in PHP_FUNCTION() 1104 RETVAL_STRINGL(outBuf, buf_len); in PHP_FUNCTION()
|
/PHP-7.1/ext/gmp/ |
H A D | gmp.c | 559 static int gmp_serialize(zval *object, unsigned char **buffer, size_t *buf_len, zend_serialize_data… in gmp_serialize() argument 577 *buf_len = ZSTR_LEN(buf.s); in gmp_serialize() 584 …ize(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, zend_unserialize… in gmp_unserialize() argument 601 max = buf + buf_len; in gmp_unserialize()
|
/PHP-7.1/main/ |
H A D | main.c | 1015 int buf_len; in php_win32_docref2_from_error() local 1018 buf_len = (int)strlen(buf); in php_win32_docref2_from_error() 1019 if (buf_len >= 2) { in php_win32_docref2_from_error() 1020 buf[buf_len - 1] = '\0'; in php_win32_docref2_from_error() 1021 buf[buf_len - 2] = '\0'; in php_win32_docref2_from_error()
|
/PHP-7.1/ext/iconv/ |
H A D | iconv.c | 2638 const char *ps, size_t buf_len, size_t *consumed, in php_iconv_stream_filter_append_bucket() argument 2652 initial_out_buf_size = buf_len; in php_iconv_stream_filter_append_bucket() 2653 icnt = buf_len; in php_iconv_stream_filter_append_bucket() 2834 *consumed += buf_len - icnt; in php_iconv_stream_filter_append_bucket()
|