Home
last modified time | relevance | path

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

12

/PHP-7.0/Zend/
H A Dzend_interfaces.h75 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 Dzend_interfaces.c413 ZEND_API int zend_user_serialize(zval *object, unsigned char **buffer, size_t *buf_len, zend_serial… in zend_user_serialize() argument
432 *buf_len = Z_STRLEN(retval); in zend_user_serialize()
450 …ize(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, zend_unserialize… in zend_user_unserialize() argument
458 ZVAL_STRINGL(&zdata, (char*)buf, buf_len); in zend_user_unserialize()
472 ZEND_API int zend_class_serialize_deny(zval *object, unsigned char **buffer, size_t *buf_len, zend_… in zend_class_serialize_deny() argument
480 …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.h170 int (*serialize)(zval *object, unsigned char **buffer, size_t *buf_len, zend_serialize_data *data);
171 …int (*unserialize)(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, z…
/PHP-7.0/ext/mysqlnd/
H A Dmysqlnd_priv.h67 #define SET_NEW_MESSAGE(buf, buf_len, message, len, persistent) \ argument
77 (buf_len) = (len); \
80 #define SET_EMPTY_MESSAGE(buf, buf_len, persistent) \ argument
86 (buf_len) = 0; \
H A Dmysqlnd_wireprotocol.c245 if (buf_len > 2) { in php_mysqlnd_read_error_from_line()
254 if ((buf_len - (p - buf)) >= MYSQLND_SQLSTATE_LENGTH) { in php_mysqlnd_read_error_from_line()
261 if ((buf_len - (p - buf)) > 0) { in php_mysqlnd_read_error_from_line()
691 buf_len--; in php_mysqlnd_auth_response_read()
746 packet->message_len = MIN(i, buf_len - (p - begin)); in php_mysqlnd_auth_response_read()
886 packet->message_len = MIN(i, buf_len - (p - begin)); in php_mysqlnd_ok_read()
936 size_t buf_len = conn->net->cmd_buffer.length; in php_mysqlnd_eof_read() local
1085 size_t buf_len = conn->net->cmd_buffer.length; in php_mysqlnd_rset_header_read() local
1946 size_t buf_len = conn->net->cmd_buffer.length; in php_mysqlnd_stats_read() local
1988 size_t buf_len = conn->net->cmd_buffer.length; in php_mysqlnd_prepare_read() local
[all …]
H A Dmysqlnd_loaddata.c69 int mysqlnd_local_infile_read(void * ptr, zend_uchar * buf, unsigned int buf_len) in mysqlnd_local_infile_read() argument
76 count = (int) php_stream_read(info->fd, (char *) buf, buf_len); in mysqlnd_local_infile_read()
H A Dmysqlnd_ps_codec.c548 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
551 size_t left = (*buf_len - (*p - *buf)); in mysqlnd_stmt_execute_check_n_enlarge_buffer()
556 *buf_len = offset + needed_bytes + overalloc; in mysqlnd_stmt_execute_check_n_enlarge_buffer()
557 tmp_buf = mnd_emalloc(*buf_len); in mysqlnd_stmt_execute_check_n_enlarge_buffer()
833 …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
847 …if (FAIL == mysqlnd_stmt_execute_check_n_enlarge_buffer(buf, p, buf_len, provided_buffer, null_cou… in mysqlnd_stmt_execute_store_params()
873 …if (FAIL == mysqlnd_stmt_execute_check_n_enlarge_buffer(buf, p, buf_len, provided_buffer, stmt->pa… in mysqlnd_stmt_execute_store_params()
889 …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.0/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.h375 char* XMLRPC_REQUEST_ToXML(XMLRPC_REQUEST request, int *buf_len);
376 char* XMLRPC_VALUE_ToXML(XMLRPC_VALUE val, int* buf_len);
H A Dxml_element.c537 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 Dxmlrpc.c663 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.0/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.0/ext/spl/
H A Dspl_observer.c742 size_t buf_len; in SPL_METHOD() local
750 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &buf, &buf_len) == FAILURE) { in SPL_METHOD()
754 if (buf_len == 0) { in SPL_METHOD()
768 if (!php_var_unserialize(pcount, &p, s + buf_len, &var_hash) || Z_TYPE_P(pcount) != IS_LONG) { in SPL_METHOD()
790 if (!php_var_unserialize(&entry, &p, s + buf_len, &var_hash)) { in SPL_METHOD()
795 if (!php_var_unserialize(&inf, &p, s + buf_len, &var_hash)) { in SPL_METHOD()
843 if (!php_var_unserialize(pmembers, &p, s + buf_len, &var_hash) || Z_TYPE_P(pmembers) != IS_ARRAY) { in SPL_METHOD()
855 …xpectedValueException, 0, "Error at offset %pd of %d bytes", (zend_long)((char*)p - buf), buf_len); in SPL_METHOD()
H A Dspl_dllist.c1182 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 …xpectedValueException, 0, "Error at offset %pd of %d bytes", (zend_long)((char*)p - buf), buf_len); in SPL_METHOD()
H A Dspl_array.c1741 size_t buf_len; in SPL_METHOD() local
1747 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &buf, &buf_len) == FAILURE) { in SPL_METHOD()
1751 if (buf_len == 0) { in SPL_METHOD()
1770 if (!php_var_unserialize(zflags, &p, s + buf_len, &var_hash) || Z_TYPE_P(zflags) != IS_LONG) { in SPL_METHOD()
1798 if (!php_var_unserialize(array, &p, s + buf_len, &var_hash) in SPL_METHOD()
1826 if (!php_var_unserialize(members, &p, s + buf_len, &var_hash) || Z_TYPE_P(members) != IS_ARRAY) { in SPL_METHOD()
1839 …xpectedValueException, 0, "Error at offset %pd of %d bytes", (zend_long)((char*)p - buf), buf_len); in SPL_METHOD()
/PHP-7.0/ext/pdo_firebird/
H A Dfirebird_driver.c667 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.0/ext/sockets/
H A Dsockets.c1650 size_t buf_len, retval; local
1654 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "rsll", &arg1, &buf, &buf_len, &len, &flags) == FAILURE…
1662 retval = send(php_sock->bsd_socket, buf, (buf_len < len ? buf_len : len), flags);
1811 size_t buf_len, addr_len; local
1816 …if (zend_parse_parameters(argc, "rslls|l", &arg1, &buf, &buf_len, &len, &flags, &addr, &addr_len, …
1830 …retval = sendto(php_sock->bsd_socket, buf, (len > buf_len) ? buf_len : len, flags, (struct sockadd…
1846 …retval = sendto(php_sock->bsd_socket, buf, (len > buf_len) ? buf_len : len, flags, (struct sockadd…
1862 …retval = sendto(php_sock->bsd_socket, buf, (len > buf_len) ? buf_len : len, flags, (struct sockadd…
/PHP-7.0/ext/standard/
H A Dfile.c1949 size_t buf_len; in PHP_FUNCTION() local
2022 if ((buf = php_stream_get_line(stream, NULL, 0, &buf_len)) == NULL) { in PHP_FUNCTION()
2027 if (php_stream_get_line(stream, buf, len + 1, &buf_len) == NULL) { in PHP_FUNCTION()
2033 php_fgetcsv(stream, delimiter, enclosure, escape, buf_len, buf, return_value); in PHP_FUNCTION()
2037 …stream *stream, char delimiter, char enclosure, char escape_char, size_t buf_len, char *buf, zval … in php_fgetcsv() argument
2052 tptr = (char *)php_fgetcsv_lookup_trailing_spaces(buf, buf_len, delimiter); in php_fgetcsv()
2053 line_end_len = buf_len - (size_t)(tptr - buf); in php_fgetcsv()
2057 temp_len = buf_len; in php_fgetcsv()
2146 buf_len = new_len; in php_fgetcsv()
2150 line_end = limit = (char *)php_fgetcsv_lookup_trailing_spaces(buf, buf_len, delimiter); in php_fgetcsv()
[all …]
H A Dfile.h84 …stream *stream, char delimiter, char enclosure, char escape_char, size_t buf_len, char *buf, zval …
H A Dvar.c1039 size_t buf_len; in PHP_FUNCTION() local
1046 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|a", &buf, &buf_len, &options) == FAILURE) { in PHP_FUNCTION()
1050 if (buf_len == 0) { in PHP_FUNCTION()
1076 if (!php_var_unserialize_ex(retval, &p, p + buf_len, &var_hash, class_hash)) { in PHP_FUNCTION()
1084 (zend_long)((char*)p - buf), buf_len); in PHP_FUNCTION()
H A Dfilters.c1467 const char *ps, size_t buf_len, size_t *consumed, in strfilter_convert_append_bucket() argument
1483 initial_out_buf_size = buf_len; in strfilter_convert_append_bucket()
1484 icnt = buf_len; in strfilter_convert_append_bucket()
1655 *consumed += buf_len - icnt; in strfilter_convert_append_bucket()
/PHP-7.0/ext/xmlrpc/
H A Dxmlrpc-epi-php.c1086 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.0/ext/gmp/
H A Dgmp.c559 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.0/main/
H A Dmain.c975 int buf_len; in php_win32_docref2_from_error() local
978 buf_len = (int)strlen(buf); in php_win32_docref2_from_error()
979 if (buf_len >= 2) { in php_win32_docref2_from_error()
980 buf[buf_len - 1] = '\0'; in php_win32_docref2_from_error()
981 buf[buf_len - 2] = '\0'; in php_win32_docref2_from_error()
/PHP-7.0/ext/iconv/
H A Diconv.c2599 const char *ps, size_t buf_len, size_t *consumed, in php_iconv_stream_filter_append_bucket() argument
2613 initial_out_buf_size = buf_len; in php_iconv_stream_filter_append_bucket()
2614 icnt = buf_len; in php_iconv_stream_filter_append_bucket()
2795 *consumed += buf_len - icnt; in php_iconv_stream_filter_append_bucket()

Completed in 124 milliseconds

12