Searched defs:buf_len (Results 1 - 25 of 26) sorted by relevance

12

/PHP_TRUNK/ext/xmlrpc/libxmlrpc/
H A Dxml_element.c522 * void xml_element_serialize_to_string(xml_element *el, XML_ELEM_OUTPUT_OPTIONS options, int *buf_len)
528 * buf_len - length of returned buffer, if not null.
537 char* xml_elem_serialize_to_string(xml_element *el, XML_ELEM_OUTPUT_OPTIONS options, int *buf_len) argument
544 if(buf_len) {
545 *buf_len = buf.len;
H A Dxmlrpc.c652 * buf_len -- length of returned buffer, if not null
663 char* XMLRPC_VALUE_ToXML(XMLRPC_VALUE val, int* buf_len) { argument
668 pRet = xml_elem_serialize_to_string(root_elem, NULL, buf_len);
685 * buf_len -- size of returned buf, if not null
697 char* XMLRPC_REQUEST_ToXML(XMLRPC_REQUEST request, int* buf_len) { argument
716 buf_len);
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_loaddata.c69 int mysqlnd_local_infile_read(void * ptr, zend_uchar * buf, unsigned int buf_len) argument
76 count = (int) php_stream_read(info->fd, (char *) buf, buf_len);
H A Dmysqlnd_ps_codec.c542 mysqlnd_stmt_execute_check_n_enlarge_buffer(zend_uchar **buf, zend_uchar **p, size_t * buf_len, zend_uchar * const provided_buffer, size_t needed_bytes) argument
545 size_t left = (*buf_len - (*p - *buf));
550 *buf_len = offset + needed_bytes + overalloc;
551 tmp_buf = mnd_emalloc(*buf_len);
827 mysqlnd_stmt_execute_store_params(MYSQLND_STMT * s, zend_uchar **buf, zend_uchar **p, size_t *buf_len )
841 if (FAIL == mysqlnd_stmt_execute_check_n_enlarge_buffer(buf, p, buf_len, provided_buffer, null_count)) {
867 if (FAIL == mysqlnd_stmt_execute_check_n_enlarge_buffer(buf, p, buf_len, provided_buffer, stmt->param_count * 2)) {
883 if (FAIL == mysqlnd_stmt_execute_check_n_enlarge_buffer(buf, p, buf_len, provided_buffer, data_size)) {
H A Dmysqlnd_wireprotocol.c234 php_mysqlnd_read_error_from_line(zend_uchar *buf, size_t buf_len, argument
246 if (buf_len > 2) {
255 if ((buf_len - (p - buf)) >= MYSQLND_SQLSTATE_LENGTH) {
262 if ((buf_len - (p - buf)) > 0) {
263 error_msg_len = MIN((int)((buf_len - (p - buf))), (int) (error_buf_len - 1));
684 size_t buf_len = conn->net->cmd_buffer.buffer? conn->net->cmd_buffer.length: AUTH_RESP_BUFFER_SIZE; local
694 buf_len--;
695 PACKET_READ_HEADER_AND_BODY(packet, conn, buf, buf_len, "OK", PROT_OK_PACKET);
700 because buf_len is -1 the size of the buffer pointed
749 packet->message_len = MIN(i, buf_len
847 size_t buf_len = conn->net->cmd_buffer.buffer? conn->net->cmd_buffer.length : OK_BUFFER_SIZE; local
939 size_t buf_len = conn->net->cmd_buffer.length; local
1088 size_t buf_len = conn->net->cmd_buffer.length; local
1228 size_t buf_len = conn->net->cmd_buffer.length, total_len = 0; local
1912 size_t buf_len = conn->net->cmd_buffer.length; local
1954 size_t buf_len = conn->net->cmd_buffer.length; local
2042 size_t buf_len = conn->net->cmd_buffer.length; local
[all...]
/PHP_TRUNK/ext/pdo_firebird/
H A Dfirebird_driver.c650 short buf_len = 256, dpb_len; local
666 if (dpb_values[i] && buf_len > 0) {
667 dpb_len = slprintf(dpb, buf_len, "%c%c%s", dpb_flags[i], (unsigned char)strlen(dpb_values[i]),
670 buf_len -= dpb_len;
/PHP_TRUNK/ext/interbase/
H A Dinterbase.c847 short i, dpb_len, buf_len = 257-2; /* version byte at the front, and a null at the end */ local
853 if (dpb_args[i] && args[i] && len[i] && buf_len > 0) {
854 dpb_len = slprintf(dpb, buf_len, "%c%c%s", dpb_args[i],(unsigned char)len[i],args[i]);
856 buf_len -= dpb_len;
859 if (largs[BUF] && buf_len > 0) {
860 dpb_len = slprintf(dpb, buf_len, "%c\2%c%c", isc_dpb_num_buffers,
863 buf_len -= dpb_len;
865 if (largs[SYNC] && buf_len > 0) {
866 dpb_len = slprintf(dpb, buf_len, "%c\1%c", isc_dpb_force_write, largs[SYNC] == isc_spb_prp_wm_sync ? 1 : 0);
868 buf_len
[all...]
/PHP_TRUNK/ext/curl/
H A Dinterface.c1605 static int curl_debug(CURL *cp, curl_infotype type, char *buf, size_t buf_len, void *ctx) /* {{{ */ argument
1613 if (buf_len > 0) {
1614 ch->header.str = zend_string_init(buf, buf_len, 0);
/PHP_TRUNK/ext/gmp/
H A Dgmp.c559 static int gmp_serialize(zval *object, unsigned char **buffer, size_t *buf_len, zend_serialize_data *data) /* {{{ */ argument
577 *buf_len = ZSTR_LEN(buf.s);
584 static int gmp_unserialize(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, zend_unserialize_data *data) /* {{{ */ argument
597 max = buf + buf_len;
/PHP_TRUNK/ext/iconv/
H A Diconv.c2600 const char *ps, size_t buf_len, size_t *consumed,
2614 initial_out_buf_size = buf_len;
2615 icnt = buf_len;
2793 *consumed += buf_len - icnt;
2596 php_iconv_stream_filter_append_bucket( php_iconv_stream_filter *self, php_stream *stream, php_stream_filter *filter, php_stream_bucket_brigade *buckets_out, const char *ps, size_t buf_len, size_t *consumed, int persistent) argument
/PHP_TRUNK/ext/pdo/
H A Dpdo_stmt.c2271 static int pdo_row_serialize(zval *object, unsigned char **buffer, size_t *buf_len, zend_serialize_data *data);
2708 static int pdo_row_serialize(zval *object, unsigned char **buffer, size_t *buf_len, zend_serialize_data *data) argument
/PHP_TRUNK/ext/pgsql/
H A Dpgsql.c3492 size_t buf_len = PGSQL_LO_READ_BUF_SIZE; local
3506 buf_len = len < 0 ? 0 : len;
3509 buf = zend_string_alloc(buf_len, 0);
/PHP_TRUNK/ext/phar/
H A Dphar.c1531 static inline char *phar_strnstr(const char *buf, int buf_len, const char *search, int search_len) /* {{{ */ argument
1536 if (buf_len < search_len) {
1543 if (!(c = memchr(c + 1, search[0], buf_len - search_len - so_far))) {
1549 if (so_far >= (buf_len - search_len)) {
/PHP_TRUNK/ext/soap/
H A Dphp_encoding.c2874 size_t buf_len=64, real_len; local
2892 buf = (char *) emalloc(buf_len);
2893 while ((real_len = strftime(buf, buf_len, format, ta)) == buf_len || real_len == 0) {
2894 buf_len *= 2;
2895 buf = (char *) erealloc(buf, buf_len);
2915 if (real_len >= buf_len) {
/PHP_TRUNK/ext/sockets/
H A Dsockets.c1640 size_t buf_len, retval; local
1644 if (zend_parse_parameters(ZEND_NUM_ARGS(), "rsll", &arg1, &buf, &buf_len, &len, &flags) == FAILURE) {
1652 retval = send(php_sock->bsd_socket, buf, (buf_len < len ? buf_len : len), flags);
1801 size_t buf_len, addr_len; local
1806 if (zend_parse_parameters(argc, "rslls|l", &arg1, &buf, &buf_len, &len, &flags, &addr, &addr_len, &port) == FAILURE) {
1820 retval = sendto(php_sock->bsd_socket, buf, (len > buf_len) ? buf_len : len, flags, (struct sockaddr *) &s_un, SUN_LEN(&s_un));
1836 retval = sendto(php_sock->bsd_socket, buf, (len > buf_len) ? buf_len
[all...]
/PHP_TRUNK/ext/standard/
H A Dfile.c1960 size_t buf_len; local
2033 if ((buf = php_stream_get_line(stream, NULL, 0, &buf_len)) == NULL) {
2038 if (php_stream_get_line(stream, buf, len + 1, &buf_len) == NULL) {
2044 php_fgetcsv(stream, delimiter, enclosure, escape, buf_len, buf, return_value);
2048 PHPAPI void php_fgetcsv(php_stream *stream, char delimiter, char enclosure, char escape_char, size_t buf_len, char *buf, zval *return_value) /* {{{ */ argument
2063 tptr = (char *)php_fgetcsv_lookup_trailing_spaces(buf, buf_len, delimiter);
2064 line_end_len = buf_len - (size_t)(tptr - buf);
2068 temp_len = buf_len;
2157 buf_len = new_len;
2161 line_end = limit = (char *)php_fgetcsv_lookup_trailing_spaces(buf, buf_len, delimite
[all...]
H A Dfilters.c1467 const char *ps, size_t buf_len, size_t *consumed,
1483 initial_out_buf_size = buf_len;
1484 icnt = buf_len;
1655 *consumed += buf_len - icnt;
1463 strfilter_convert_append_bucket( php_convert_filter *inst, php_stream *stream, php_stream_filter *filter, php_stream_bucket_brigade *buckets_out, const char *ps, size_t buf_len, size_t *consumed, int persistent) argument
H A Dvar.c1002 size_t buf_len; local
1008 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|a", &buf, &buf_len, &options) == FAILURE) {
1012 if (buf_len == 0) {
1037 if (!php_var_unserialize_ex(return_value, &p, p + buf_len, &var_hash, class_hash)) {
1045 php_error_docref(NULL, E_NOTICE, "Error at offset " ZEND_LONG_FMT " of %d bytes", (zend_long)((char*)p - buf), buf_len);
/PHP_TRUNK/ext/xmlrpc/
H A Dxmlrpc-epi-php.c1076 int buf_len = 0; local
1092 outBuf = XMLRPC_REQUEST_ToXML(xResponse, &buf_len);
1094 RETVAL_STRINGL(outBuf, buf_len);
/PHP_TRUNK/Zend/
H A Dzend_interfaces.c413 ZEND_API int zend_user_serialize(zval *object, unsigned char **buffer, size_t *buf_len, zend_serialize_data *data) argument
427 /* we could also make this '*buf_len = 0' but this allows to skip variables */
432 *buf_len = Z_STRLEN(retval);
450 ZEND_API int zend_user_unserialize(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, zend_unserialize_data *data) argument
458 ZVAL_STRINGL(&zdata, (char*)buf, buf_len);
472 ZEND_API int zend_class_serialize_deny(zval *object, unsigned char **buffer, size_t *buf_len, zend_serialize_data *data) /* {{{ */ argument
480 ZEND_API int zend_class_unserialize_deny(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, zend_unserialize_data *data) /* {{{ */ argument
/PHP_TRUNK/main/
H A Dmain.c937 int buf_len; local
940 buf_len = (int)strlen(buf);
941 if (buf_len >= 2) {
942 buf[buf_len - 1] = '\0';
943 buf[buf_len - 2] = '\0';
/PHP_TRUNK/ext/spl/
H A Dspl_array.c1710 size_t buf_len; local
1717 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &buf, &buf_len) == FAILURE) {
1721 if (buf_len == 0) {
1740 if (!php_var_unserialize(&zflags, &p, s + buf_len, &var_hash) || Z_TYPE(zflags) != IS_LONG) {
1763 if (!php_var_unserialize(&intern->array, &p, s + buf_len, &var_hash)) {
1779 if (!php_var_unserialize(&members, &p, s + buf_len, &var_hash) || Z_TYPE(members) != IS_ARRAY) {
1795 zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0, "Error at offset %pd of %d bytes", (zend_long)((char*)p - buf), buf_len);
H A Dspl_directory.c2135 size_t buf_len = intern->u.file.current_line_len; local
2136 char *buf = estrndup(intern->u.file.current_line, buf_len);
2143 php_fgetcsv(intern->u.file.stream, delimiter, enclosure, escape, buf_len, buf, &intern->u.file.current_zval);
H A Dspl_dllist.c1183 size_t buf_len; local
1187 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &buf, &buf_len) == FAILURE) {
1191 if (buf_len == 0) {
1199 if (!php_var_unserialize(&flags, &p, s + buf_len, &var_hash)) {
1214 if (!php_var_unserialize(&elem, &p, s + buf_len, &var_hash)) {
1231 zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0, "Error at offset %pd of %d bytes", (zend_long)((char*)p - buf), buf_len);
H A Dspl_observer.c780 size_t buf_len; local
787 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &buf, &buf_len) == FAILURE) {
791 if (buf_len == 0) {
804 if (!php_var_unserialize(&pcount, &p, s + buf_len, &var_hash)) {
827 if (!php_var_unserialize(&entry, &p, s + buf_len, &var_hash)) {
836 if (!php_var_unserialize(&inf, &p, s + buf_len, &var_hash)) {
877 if (!php_var_unserialize(&pmembers, &p, s + buf_len, &var_hash) || Z_TYPE(pmembers) != IS_ARRAY) {
894 zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0, "Error at offset %pd of %d bytes", (zend_long)((char*)p - buf), buf_len);

Completed in 95 milliseconds

12