Home
last modified time | relevance | path

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

12

/PHP-7.3/ext/mysqlnd/
H A Dmysqlnd_connection.h47 #define SET_NEW_MESSAGE(buf, buf_len, message, len) \ argument
57 (buf_len) = (len); \
60 #define SET_EMPTY_MESSAGE(buf, buf_len) \ argument
66 (buf_len) = 0; \
H A Dmysqlnd_wireprotocol.c211 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()
657 buf_len--; in php_mysqlnd_auth_response_read()
850 packet->message_len = MIN(net_len, buf_len - (p - begin)); in php_mysqlnd_ok_read()
902 size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_eof_read() local
1039 size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_rset_header_read() local
1180 size_t buf_len = pfc->cmd_buffer.length, total_len = 0; in php_mysqlnd_rset_field_read() local
1841 size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_stats_read() local
1888 size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_prepare_read() local
[all …]
H A Dmysqlnd_loaddata.c67 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 Dmysqlnd_ps_codec.c578 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
581 size_t left = (*buf_len - (*p - *buf)); in mysqlnd_stmt_execute_check_n_enlarge_buffer()
586 *buf_len = offset + needed_bytes + overalloc; in mysqlnd_stmt_execute_check_n_enlarge_buffer()
587 tmp_buf = mnd_emalloc(*buf_len); in mysqlnd_stmt_execute_check_n_enlarge_buffer()
866 …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
880 …if (FAIL == mysqlnd_stmt_execute_check_n_enlarge_buffer(buf, p, buf_len, provided_buffer, null_cou… in mysqlnd_stmt_execute_store_params()
906 …if (FAIL == mysqlnd_stmt_execute_check_n_enlarge_buffer(buf, p, buf_len, provided_buffer, stmt->pa… in mysqlnd_stmt_execute_store_params()
922 …if (FAIL == mysqlnd_stmt_execute_check_n_enlarge_buffer(buf, p, buf_len, provided_buffer, data_siz… in mysqlnd_stmt_execute_store_params()
/PHP-7.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…
77 ZEND_API int zend_class_serialize_deny(zval *object, unsigned char **buffer, size_t *buf_len, zend_…
78 …eny(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, zend_unserialize…
H A Dzend_interfaces.c404 ZEND_API int zend_user_serialize(zval *object, unsigned char **buffer, size_t *buf_len, zend_serial… in zend_user_serialize() argument
423 *buf_len = Z_STRLEN(retval); in zend_user_serialize()
441 …ize(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, zend_unserialize… in zend_user_unserialize() argument
449 ZVAL_STRINGL(&zdata, (char*)buf, buf_len); in zend_user_unserialize()
463 ZEND_API int zend_class_serialize_deny(zval *object, unsigned char **buffer, size_t *buf_len, zend_… in zend_class_serialize_deny() argument
471 …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 Dzend.h152 int (*serialize)(zval *object, unsigned char **buffer, size_t *buf_len, zend_serialize_data *data);
153 …int (*unserialize)(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, z…
/PHP-7.3/ext/xmlrpc/libxmlrpc/
H A Dxml_element.h162 char* xml_elem_serialize_to_string(xml_element *el, XML_ELEM_OUTPUT_OPTIONS options, int *buf_len);
H A Dxmlrpc.h376 char* XMLRPC_REQUEST_ToXML(XMLRPC_REQUEST request, int *buf_len);
377 char* XMLRPC_VALUE_ToXML(XMLRPC_VALUE val, int* buf_len);
H A Dxml_element.c534 char* xml_elem_serialize_to_string(xml_element *el, XML_ELEM_OUTPUT_OPTIONS options, int *buf_len) in xml_elem_serialize_to_string() argument
541 if(buf_len) { in xml_elem_serialize_to_string()
542 *buf_len = buf.len; in xml_elem_serialize_to_string()
H A Dxmlrpc.c660 char* XMLRPC_VALUE_ToXML(XMLRPC_VALUE val, int* buf_len) { in XMLRPC_VALUE_ToXML() argument
665 pRet = xml_elem_serialize_to_string(root_elem, NULL, buf_len); in XMLRPC_VALUE_ToXML()
694 char* XMLRPC_REQUEST_ToXML(XMLRPC_REQUEST request, int* buf_len) { in XMLRPC_REQUEST_ToXML() argument
713 buf_len); in XMLRPC_REQUEST_ToXML()
/PHP-7.3/ext/interbase/
H A Dinterbase.c853 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.3/ext/spl/
H A Dspl_observer.c754 size_t buf_len; in SPL_METHOD() local
762 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &buf, &buf_len) == FAILURE) { in SPL_METHOD()
766 if (buf_len == 0) { in SPL_METHOD()
780 if (!php_var_unserialize(pcount, &p, s + buf_len, &var_hash) || Z_TYPE_P(pcount) != IS_LONG) { in SPL_METHOD()
805 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()
859 if (!php_var_unserialize(pmembers, &p, s + buf_len, &var_hash) || Z_TYPE_P(pmembers) != IS_ARRAY) { in SPL_METHOD()
871 …spl_ce_UnexpectedValueException, 0, "Error at offset %zd of %zd bytes", ((char*)p - buf), buf_len); in SPL_METHOD()
H A Dspl_dllist.c1176 size_t buf_len; in SPL_METHOD() local
1180 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &buf, &buf_len) == FAILURE) { in SPL_METHOD()
1184 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 Dspl_array.c1778 size_t buf_len; in SPL_METHOD() local
1784 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &buf, &buf_len) == FAILURE) { in SPL_METHOD()
1788 if (buf_len == 0) { in SPL_METHOD()
1807 if (!php_var_unserialize(zflags, &p, s + buf_len, &var_hash) || Z_TYPE_P(zflags) != IS_LONG) { in SPL_METHOD()
1835 if (!php_var_unserialize(array, &p, s + buf_len, &var_hash) in SPL_METHOD()
1865 if (!php_var_unserialize(members, &p, s + buf_len, &var_hash) || Z_TYPE_P(members) != IS_ARRAY) { in SPL_METHOD()
1878 …eption, 0, "Error at offset " ZEND_LONG_FMT " of %zd bytes", (zend_long)((char*)p - buf), buf_len); in SPL_METHOD()
/PHP-7.3/ext/pdo_firebird/
H A Dfirebird_driver.c631 short buf_len = 256, dpb_len; in pdo_firebird_handle_factory() local
647 if (dpb_values[i] && buf_len > 0) { in pdo_firebird_handle_factory()
648 dpb_len = slprintf(dpb, buf_len, "%c%c%s", dpb_flags[i], (unsigned char)strlen(dpb_values[i]), in pdo_firebird_handle_factory()
651 buf_len -= dpb_len; in pdo_firebird_handle_factory()
/PHP-7.3/ext/standard/
H A Dfile.h80 …stream *stream, char delimiter, char enclosure, char escape_char, size_t buf_len, char *buf, zval …
H A Dfile.c2003 size_t buf_len; in PHP_FUNCTION() local
2077 if ((buf = php_stream_get_line(stream, NULL, 0, &buf_len)) == NULL) { in PHP_FUNCTION()
2082 if (php_stream_get_line(stream, buf, len + 1, &buf_len) == NULL) { in PHP_FUNCTION()
2088 php_fgetcsv(stream, delimiter, enclosure, escape, buf_len, buf, return_value); in PHP_FUNCTION()
2092 …stream *stream, char delimiter, char enclosure, char escape_char, size_t buf_len, char *buf, zval … in php_fgetcsv() argument
2107 tptr = (char *)php_fgetcsv_lookup_trailing_spaces(buf, buf_len, delimiter); in php_fgetcsv()
2108 line_end_len = buf_len - (size_t)(tptr - buf); in php_fgetcsv()
2112 temp_len = buf_len; in php_fgetcsv()
2201 buf_len = new_len; in php_fgetcsv()
2205 line_end = limit = (char *)php_fgetcsv_lookup_trailing_spaces(buf, buf_len, delimiter); in php_fgetcsv()
[all …]
H A Dvar.c1091 size_t buf_len; in PHP_FUNCTION() local
1099 Z_PARAM_STRING(buf, buf_len) in PHP_FUNCTION()
1104 if (buf_len == 0) { in PHP_FUNCTION()
1139 if (!php_var_unserialize(retval, &p, p + buf_len, &var_hash)) { in PHP_FUNCTION()
1142 (zend_long)((char*)p - buf), buf_len); in PHP_FUNCTION()
H A Dfilters.c1462 const char *ps, size_t buf_len, size_t *consumed, in strfilter_convert_append_bucket() argument
1478 initial_out_buf_size = buf_len; in strfilter_convert_append_bucket()
1479 icnt = buf_len; in strfilter_convert_append_bucket()
1629 *consumed += buf_len - icnt; in strfilter_convert_append_bucket()
/PHP-7.3/ext/sockets/
H A Dsockets.c1753 size_t buf_len, retval; local
1757 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "rsll", &arg1, &buf, &buf_len, &len, &flags) == FAILURE…
1770 retval = send(php_sock->bsd_socket, buf, (buf_len < (size_t)len ? buf_len : (size_t)len), flags);
1921 size_t buf_len, addr_len; local
1926 …if (zend_parse_parameters(argc, "rslls|l", &arg1, &buf, &buf_len, &len, &flags, &addr, &addr_len, …
1945 …retval = sendto(php_sock->bsd_socket, buf, ((size_t)len > buf_len) ? buf_len : (size_t)len, flags,…
1961 …retval = sendto(php_sock->bsd_socket, buf, ((size_t)len > buf_len) ? buf_len : (size_t)len, flags,…
1977 …retval = sendto(php_sock->bsd_socket, buf, ((size_t)len > buf_len) ? buf_len : (size_t)len, flags,…
/PHP-7.3/ext/xmlrpc/
H A Dxmlrpc-epi-php.c1084 int buf_len = 0; in PHP_FUNCTION() local
1100 outBuf = XMLRPC_REQUEST_ToXML(xResponse, &buf_len); in PHP_FUNCTION()
1102 RETVAL_STRINGL(outBuf, buf_len); in PHP_FUNCTION()
/PHP-7.3/main/
H A Dmain.c1173 size_t buf_len; in php_win32_docref2_from_error() local
1176 buf_len = strlen(buf); in php_win32_docref2_from_error()
1177 if (buf_len >= 2) { in php_win32_docref2_from_error()
1178 buf[buf_len - 1] = '\0'; in php_win32_docref2_from_error()
1179 buf[buf_len - 2] = '\0'; in php_win32_docref2_from_error()
/PHP-7.3/ext/gmp/
H A Dgmp.c569 static int gmp_serialize(zval *object, unsigned char **buffer, size_t *buf_len, zend_serialize_data… in gmp_serialize() argument
587 *buf_len = ZSTR_LEN(buf.s); in gmp_serialize()
594 …ize(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, zend_unserialize… in gmp_unserialize() argument
611 max = buf + buf_len; in gmp_unserialize()
/PHP-7.3/ext/iconv/
H A Diconv.c2632 const char *ps, size_t buf_len, size_t *consumed, in php_iconv_stream_filter_append_bucket() argument
2646 initial_out_buf_size = buf_len; in php_iconv_stream_filter_append_bucket()
2647 icnt = buf_len; in php_iconv_stream_filter_append_bucket()
2808 *consumed += buf_len - icnt; in php_iconv_stream_filter_append_bucket()

Completed in 128 milliseconds

12