Searched refs:buf_len (Results 1 - 25 of 35) 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 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 Dxmlrpc.c645 * buf_len -- length of returned buffer, if not null
656 char* XMLRPC_VALUE_ToXML(XMLRPC_VALUE val, int* buf_len) { argument
661 pRet = xml_elem_serialize_to_string(root_elem, NULL, buf_len);
678 * buf_len -- size of returned buf, if not null
690 char* XMLRPC_REQUEST_ToXML(XMLRPC_REQUEST request, int* buf_len) { argument
709 buf_len);
/PHP_TRUNK/sapi/roxen/
H A Droxen.c545 int buf_len; local
546 buf_len = MIN(511, ind->u.string->len);
547 strncpy(buf, ind->u.string->str, buf_len);
548 buf[buf_len] = '\0'; /* Terminate correctly */
554 zend_hash_update(&EG(symbol_table), buf, buf_len + 1, &zvalue, sizeof(zval *), NULL); local
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_loaddata.c69 int mysqlnd_local_infile_read(void * ptr, zend_uchar * buf, unsigned int buf_len TSRMLS_DC)
76 count = (int) php_stream_read(info->fd, (char *) buf, buf_len);
H A Dmysqlnd_priv.h83 #define SET_NEW_MESSAGE(buf, buf_len, message, len, persistent) \
93 (buf_len) = (len); \
96 #define SET_EMPTY_MESSAGE(buf, buf_len, persistent) \
102 (buf_len) = 0; \
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...]
H A Dmysqlnd_ps_codec.c574 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 TSRMLS_DC) argument
577 size_t left = (*buf_len - (*p - *buf));
582 *buf_len = offset + needed_bytes + overalloc;
583 tmp_buf = mnd_emalloc(*buf_len);
859 mysqlnd_stmt_execute_store_params(MYSQLND_STMT * s, zend_uchar **buf, zend_uchar **p, size_t *buf_len TSRMLS_DC)
873 if (FAIL == mysqlnd_stmt_execute_check_n_enlarge_buffer(buf, p, buf_len, provided_buffer, null_count TSRMLS_CC)) {
899 if (FAIL == mysqlnd_stmt_execute_check_n_enlarge_buffer(buf, p, buf_len, provided_buffer, stmt->param_count * 2 TSRMLS_CC)) {
915 if (FAIL == mysqlnd_stmt_execute_check_n_enlarge_buffer(buf, p, buf_len, provided_buffer, data_size TSRMLS_CC)) {
/PHP_TRUNK/Zend/
H A Dzend_interfaces.c409 ZEND_API int zend_user_serialize(zval *object, unsigned char **buffer, uint32_t *buf_len, zend_serialize_data *data TSRMLS_DC) argument
423 /* we could also make this '*buf_len = 0' but this allows to skip variables */
428 *buf_len = Z_STRLEN(retval);
446 ZEND_API int zend_user_unserialize(zval *object, zend_class_entry *ce, const unsigned char *buf, uint32_t buf_len, zend_unserialize_data *data TSRMLS_DC) argument
452 ZVAL_STRINGL(&zdata, (char*)buf, buf_len);
466 ZEND_API int zend_class_serialize_deny(zval *object, unsigned char **buffer, uint32_t *buf_len, zend_serialize_data *data TSRMLS_DC) /* {{{ */ argument
474 ZEND_API int zend_class_unserialize_deny(zval *object, zend_class_entry *ce, const unsigned char *buf, uint32_t buf_len, zend_unserialize_data *data TSRMLS_DC) /* {{{ */ argument
H A Dzend_interfaces.h64 ZEND_API int zend_user_serialize(zval *object, unsigned char **buffer, uint32_t *buf_len, zend_serialize_data *data TSRMLS_DC);
65 ZEND_API int zend_user_unserialize(zval *object, zend_class_entry *ce, const unsigned char *buf, uint32_t buf_len, zend_unserialize_data *data TSRMLS_DC);
67 ZEND_API int zend_class_serialize_deny(zval *object, unsigned char **buffer, uint32_t *buf_len, zend_serialize_data *data TSRMLS_DC);
68 ZEND_API int zend_class_unserialize_deny(zval *object, zend_class_entry *ce, const unsigned char *buf, uint32_t buf_len, zend_unserialize_data *data TSRMLS_DC);
/PHP_TRUNK/ext/pdo_firebird/
H A Dfirebird_driver.c652 short buf_len = 256, dpb_len; local
668 if (dpb_values[i] && buf_len > 0) {
669 dpb_len = slprintf(dpb, buf_len, "%c%c%s", dpb_flags[i], (unsigned char)strlen(dpb_values[i]),
672 buf_len -= dpb_len;
/PHP_TRUNK/ext/phar/
H A Dphar.c613 php_uint32 buf_len; local
617 PHAR_GET_32(*buffer, buf_len);
619 buf_len = zip_metadata_len;
622 if (buf_len) {
627 if (!php_var_unserialize(metadata, &p, p + buf_len, &var_hash TSRMLS_CC)) {
639 Z_PTR_P(metadata) = pemalloc(buf_len, 1);
640 memcpy(Z_PTR_P(metadata), *buffer, buf_len); local
641 *buffer += buf_len;
649 *buffer += buf_len;
1535 static inline char *phar_strnstr(const char *buf, int buf_len, cons argument
[all...]
/PHP_TRUNK/ext/standard/
H A Dfile.h82 PHPAPI void php_fgetcsv(php_stream *stream, char delimiter, char enclosure, char escape_char, size_t buf_len, char *buf, zval *return_value TSRMLS_DC);
H A Dfilters.c1522 const char *ps, size_t buf_len, size_t *consumed,
1538 initial_out_buf_size = buf_len;
1539 icnt = buf_len;
1710 *consumed += buf_len - icnt;
1518 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 TSRMLS_DC) argument
H A Dfile.c1965 size_t buf_len; local
2038 if ((buf = php_stream_get_line(stream, NULL, 0, &buf_len)) == NULL) {
2043 if (php_stream_get_line(stream, buf, len + 1, &buf_len) == NULL) {
2049 php_fgetcsv(stream, delimiter, enclosure, escape, buf_len, buf, return_value TSRMLS_CC);
2053 PHPAPI void php_fgetcsv(php_stream *stream, char delimiter, char enclosure, char escape_char, size_t buf_len, char *buf, zval *return_value TSRMLS_DC) /* {{{ */ argument
2068 tptr = (char *)php_fgetcsv_lookup_trailing_spaces(buf, buf_len, delimiter TSRMLS_CC);
2069 line_end_len = buf_len - (size_t)(tptr - buf);
2073 temp_len = buf_len;
2162 buf_len = new_len;
2166 line_end = limit = (char *)php_fgetcsv_lookup_trailing_spaces(buf, buf_len, delimite
[all...]
H A Dvar.c1016 size_t buf_len; local
1020 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &buf, &buf_len) == FAILURE) {
1024 if (buf_len == 0) {
1030 if (!php_var_unserialize(return_value, &p, p + buf_len, &var_hash TSRMLS_CC)) {
1034 php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Error at offset " ZEND_LONG_FMT " of %d bytes", (zend_long)((char*)p - buf), buf_len);
/PHP_TRUNK/ext/ereg/
H A Dereg.c255 size_t buf_len; local
259 buf_len = regerror(REG_ITOA | err, re, NULL, 0);
260 if (buf_len) {
261 buf = (char *)safe_emalloc(buf_len, sizeof(char), 0);
264 regerror(REG_ITOA | err, re, buf, buf_len);
267 buf_len = 0;
271 message = (char *)safe_emalloc((buf_len + len + 2), sizeof(char), 0);
275 if (buf_len) {
276 snprintf(message, buf_len, "%s: ", buf);
277 buf_len
415 int buf_len; local
[all...]
/PHP_TRUNK/ext/interbase/
H A Dinterbase.c852 short i, dpb_len, buf_len = 257-2; /* version byte at the front, and a null at the end */ local
858 if (dpb_args[i] && args[i] && len[i] && buf_len > 0) {
859 dpb_len = slprintf(dpb, buf_len, "%c%c%s", dpb_args[i],(unsigned char)len[i],args[i]);
861 buf_len -= dpb_len;
864 if (largs[BUF] && buf_len > 0) {
865 dpb_len = slprintf(dpb, buf_len, "%c\2%c%c", isc_dpb_num_buffers,
868 buf_len -= dpb_len;
870 if (largs[SYNC] && buf_len > 0) {
871 dpb_len = slprintf(dpb, buf_len, "%c\1%c", isc_dpb_force_write, largs[SYNC] == isc_spb_prp_wm_sync ? 1 : 0);
873 buf_len
[all...]
/PHP_TRUNK/ext/sockets/
H A Dsockets.c1607 size_t buf_len, retval; local
1611 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rsll", &arg1, &buf, &buf_len, &len, &flags) == FAILURE) {
1617 retval = send(php_sock->bsd_socket, buf, (buf_len < len ? buf_len : len), flags);
1764 size_t buf_len, addr_len; local
1769 if (zend_parse_parameters(argc TSRMLS_CC, "rslls|l", &arg1, &buf, &buf_len, &len, &flags, &addr, &addr_len, &port) == FAILURE) {
1781 retval = sendto(php_sock->bsd_socket, buf, (len > buf_len) ? buf_len : len, flags, (struct sockaddr *) &s_un, SUN_LEN(&s_un));
1797 retval = sendto(php_sock->bsd_socket, buf, (len > buf_len) ? buf_len
[all...]
/PHP_TRUNK/ext/spl/
H A Dspl_array.c1779 size_t buf_len; local
1786 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &buf, &buf_len) == FAILURE) {
1790 if (buf_len == 0) {
1809 if (!php_var_unserialize(&zflags, &p, s + buf_len, &var_hash TSRMLS_CC) || Z_TYPE(zflags) != IS_LONG) {
1832 if (!php_var_unserialize(&intern->array, &p, s + buf_len, &var_hash TSRMLS_CC)) {
1848 if (!php_var_unserialize(&members, &p, s + buf_len, &var_hash TSRMLS_CC) || Z_TYPE(members) != IS_ARRAY) {
1864 zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0 TSRMLS_CC, "Error at offset %pd of %d bytes", (zend_long)((char*)p - buf), buf_len);
H A Dspl_dllist.c1164 size_t buf_len; local
1168 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &buf, &buf_len) == FAILURE) {
1172 if (buf_len == 0) {
1180 if (!php_var_unserialize(&flags, &p, s + buf_len, &var_hash TSRMLS_CC)) {
1195 if (!php_var_unserialize(&elem, &p, s + buf_len, &var_hash TSRMLS_CC)) {
1212 zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0 TSRMLS_CC, "Error at offset %pd of %d bytes", (zend_long)((char*)p - buf), buf_len);
H A Dspl_observer.c795 size_t buf_len; local
802 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &buf, &buf_len) == FAILURE) {
806 if (buf_len == 0) {
819 if (!php_var_unserialize(&pcount, &p, s + buf_len, &var_hash TSRMLS_CC)) {
842 if (!php_var_unserialize(&entry, &p, s + buf_len, &var_hash TSRMLS_CC)) {
851 if (!php_var_unserialize(&inf, &p, s + buf_len, &var_hash TSRMLS_CC)) {
892 if (!php_var_unserialize(&pmembers, &p, s + buf_len, &var_hash TSRMLS_CC) || Z_TYPE(pmembers) != IS_ARRAY) {
909 zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0 TSRMLS_CC, "Error at offset %pd of %d bytes", (zend_long)((char*)p - buf), buf_len);
/PHP_TRUNK/ext/xmlrpc/
H A Dxmlrpc-epi-php.c1074 int buf_len = 0; local
1090 outBuf = XMLRPC_REQUEST_ToXML(xResponse, &buf_len);
1092 RETVAL_STRINGL(outBuf, buf_len);
/PHP_TRUNK/ext/gmp/
H A Dgmp.c552 static int gmp_serialize(zval *object, unsigned char **buffer, uint32_t *buf_len, zend_serialize_data *data TSRMLS_DC) /* {{{ */ argument
572 *buf_len = buf.s->len;
579 static int gmp_unserialize(zval *object, zend_class_entry *ce, const unsigned char *buf, uint32_t buf_len, zend_unserialize_data *data TSRMLS_DC) /* {{{ */ argument
592 max = buf + buf_len;

Completed in 63 milliseconds

12