Searched refs:buf_len (Results 1 - 25 of 37) sorted by relevance

12

/PHP_5_3/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.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);
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);
/PHP_5_3/ext/ereg/
H A Dereg.c250 size_t buf_len; local
254 buf_len = regerror(REG_ITOA | err, re, NULL, 0);
255 if (buf_len) {
256 buf = (char *)safe_emalloc(buf_len, sizeof(char), 0);
259 regerror(REG_ITOA | err, re, buf, buf_len);
262 buf_len = 0;
268 message = (char *)safe_emalloc((buf_len + len + 2), sizeof(char), 0);
272 if (buf_len) {
273 snprintf(message, buf_len, "%s: ", buf);
274 buf_len
412 int buf_len; local
[all...]
/PHP_5_3/ext/interbase/
H A Dinterbase.c864 short i, dpb_len, buf_len = 257-2; /* version byte at the front, and a null at the end */ local
870 if (dpb_args[i] && args[i] && len[i] && buf_len > 0) {
871 dpb_len = slprintf(dpb, buf_len, "%c%c%s", dpb_args[i],(unsigned char)len[i],args[i]);
873 buf_len -= dpb_len;
876 if (largs[BUF] && buf_len > 0) {
877 dpb_len = slprintf(dpb, buf_len, "%c\2%c%c", isc_dpb_num_buffers,
880 buf_len -= dpb_len;
882 if (largs[SYNC] && buf_len > 0) {
883 dpb_len = slprintf(dpb, buf_len, "%c\1%c", isc_dpb_force_write, largs[SYNC] == isc_spb_prp_wm_sync ? 1 : 0);
885 buf_len
[all...]
/PHP_5_3/ext/pdo_firebird/
H A Dfirebird_driver.c655 short buf_len = 256, dpb_len; local
671 if (dpb_values[i] && buf_len > 0) {
672 dpb_len = slprintf(dpb, buf_len, "%c%c%s", dpb_flags[i], (unsigned char)strlen(dpb_values[i]),
675 buf_len -= dpb_len;
/PHP_5_3/ext/sockets/
H A Dsockets.c1512 int buf_len, retval; local
1516 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rsll", &arg1, &buf, &buf_len, &len, &flags) == FAILURE) {
1522 retval = send(php_sock->bsd_socket, buf, (buf_len < len ? buf_len : len), flags);
1662 int retval, buf_len, addr_len; local
1667 if (zend_parse_parameters(argc TSRMLS_CC, "rslls|l", &arg1, &buf, &buf_len, &len, &flags, &addr, &addr_len, &port) == FAILURE) {
1679 retval = sendto(php_sock->bsd_socket, buf, (len > buf_len) ? buf_len : len, flags, (struct sockaddr *) &s_un, SUN_LEN(&s_un));
1695 retval = sendto(php_sock->bsd_socket, buf, (len > buf_len) ? buf_len
[all...]
/PHP_5_3/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.c1504 const char *ps, size_t buf_len, size_t *consumed,
1520 initial_out_buf_size = buf_len;
1521 icnt = buf_len;
1692 *consumed += buf_len - icnt;
1500 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 Dvar.c922 int buf_len; local
926 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &buf, &buf_len) == FAILURE) {
930 if (buf_len == 0) {
936 if (!php_var_unserialize(&return_value, &p, p + buf_len, &var_hash TSRMLS_CC)) {
939 php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Error at offset %ld of %d bytes", (long)((char*)p - buf), buf_len);
H A Dfile.c2078 size_t buf_len; local
2152 if ((buf = php_stream_get_line(stream, NULL, 0, &buf_len)) == NULL) {
2157 if (php_stream_get_line(stream, buf, len + 1, &buf_len) == NULL) {
2163 php_fgetcsv(stream, delimiter, enclosure, escape, buf_len, buf, return_value TSRMLS_CC);
2167 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
2182 tptr = (char *)php_fgetcsv_lookup_trailing_spaces(buf, buf_len, delimiter TSRMLS_CC);
2183 line_end_len = buf_len - (size_t)(tptr - buf);
2187 temp_len = buf_len;
2275 buf_len = new_len;
2279 line_end = limit = (char *)php_fgetcsv_lookup_trailing_spaces(buf, buf_len, delimite
[all...]
/PHP_5_3/ext/wddx/
H A Dwddx.c408 int buf_len; local
410 buf = php_escape_html_entities(Z_STRVAL_P(var), Z_STRLEN_P(var), &buf_len, 0, ENT_QUOTES, NULL TSRMLS_CC);
412 php_wddx_add_chunk_ex(packet, buf, buf_len);
/PHP_5_3/ext/xmlrpc/
H A Dxmlrpc-epi-php.c1153 int buf_len = 0; local
1169 outBuf = XMLRPC_REQUEST_ToXML(xResponse, &buf_len);
1171 RETVAL_STRINGL(outBuf, buf_len, 1);
/PHP_5_3/sapi/roxen/
H A Droxen.c546 int buf_len; local
547 buf_len = MIN(511, ind->u.string->len);
548 strncpy(buf, ind->u.string->str, buf_len);
549 buf[buf_len] = '\0'; /* Terminate correctly */
555 zend_hash_update(&EG(symbol_table), buf, buf_len + 1, &zvalue, sizeof(zval *), NULL); local
/PHP_5_3/Zend/
H A Dzend_interfaces.c426 ZEND_API int zend_user_serialize(zval *object, unsigned char **buffer, zend_uint *buf_len, zend_serialize_data *data TSRMLS_DC) argument
440 /* we could also make this '*buf_len = 0' but this allows to skip variables */
445 *buf_len = Z_STRLEN_P(retval);
463 ZEND_API int zend_user_unserialize(zval **object, zend_class_entry *ce, const unsigned char *buf, zend_uint buf_len, zend_unserialize_data *data TSRMLS_DC) argument
470 ZVAL_STRINGL(zdata, (char*)buf, buf_len, 1);
484 ZEND_API int zend_class_serialize_deny(zval *object, unsigned char **buffer, zend_uint *buf_len, zend_serialize_data *data TSRMLS_DC) /* {{{ */ argument
492 ZEND_API int zend_class_unserialize_deny(zval **object, zend_class_entry *ce, const unsigned char *buf, zend_uint 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, zend_uint *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, zend_uint buf_len, zend_unserialize_data *data TSRMLS_DC);
67 ZEND_API int zend_class_serialize_deny(zval *object, unsigned char **buffer, zend_uint *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, zend_uint buf_len, zend_unserialize_data *data TSRMLS_DC);
/PHP_5_3/ext/mysqlnd/
H A Dmysqlnd_loaddata.c88 int mysqlnd_local_infile_read(void *ptr, char *buf, unsigned int buf_len TSRMLS_DC)
95 count = (int)php_stream_read(info->fd, buf, buf_len);
H A Dmysqlnd_priv.h108 #define SET_NEW_MESSAGE(buf, buf_len, message, len, persistent) \
118 (buf_len) = (len); \
121 #define SET_EMPTY_MESSAGE(buf, buf_len, persistent) \
127 (buf_len) = 0; \
H A Dmysqlnd_ps_codec.c601 mysqlnd_stmt_execute_store_params(MYSQLND_STMT * s, zend_uchar **buf, zend_uchar **p, size_t *buf_len TSRMLS_DC)
606 size_t left = (*buf_len - (*p - *buf));
621 *buf_len = offset + null_count + 20;
622 tmp_buf = mnd_emalloc(*buf_len);
683 *buf_len = offset + stmt->param_count * 2 + 20;
684 tmp_buf = mnd_emalloc(*buf_len);
828 left = (*buf_len - (*p - *buf));
832 *buf_len = offset + data_size + 10; /* Allocate + 10 for safety */
833 tmp_buf = mnd_emalloc(*buf_len);
H A Dmysqlnd_wireprotocol.c216 php_mysqlnd_read_error_from_line(zend_uchar *buf, size_t buf_len, argument
228 if (buf_len > 2) {
237 if ((buf_len - (p - buf)) >= MYSQLND_SQLSTATE_LENGTH) {
244 if ((buf_len - (p - buf)) > 0) {
245 error_msg_len = MIN((int)((buf_len - (p - buf))), (int) (error_buf_len - 1));
527 size_t buf_len = conn->net->cmd_buffer.buffer? conn->net->cmd_buffer.length : OK_BUFFER_SIZE; local
536 PACKET_READ_HEADER_AND_BODY(packet, conn, buf, buf_len, "OK", PROT_OK_PACKET);
568 packet->message_len = MIN(i, buf_len - (p - begin));
618 size_t buf_len = conn->net->cmd_buffer.length; local
625 PACKET_READ_HEADER_AND_BODY(packet, conn, buf, buf_len, "EO
765 size_t buf_len = conn->net->cmd_buffer.length; local
904 size_t buf_len = conn->net->cmd_buffer.length, total_len = 0; local
1654 size_t buf_len = conn->net->cmd_buffer.length; local
1696 size_t buf_len = conn->net->cmd_buffer.length; local
1784 size_t buf_len = conn->net->cmd_buffer.length; local
[all...]
/PHP_5_3/ext/phar/
H A Dphar.c609 php_uint32 buf_len; local
613 PHAR_GET_32(*buffer, buf_len);
615 buf_len = zip_metadata_len;
618 if (buf_len) {
624 if (!php_var_unserialize(metadata, &p, p + buf_len, &var_hash TSRMLS_CC)) {
636 *metadata = (zval *) pemalloc(buf_len, 1);
637 memcpy(*metadata, *buffer, buf_len);
638 *buffer += buf_len;
646 *buffer += buf_len;
1532 static inline char *phar_strnstr(const char *buf, int buf_len, cons argument
[all...]
/PHP_5_3/main/
H A Dmain.c886 int buf_len; local
889 buf_len = strlen(buf);
890 if (buf_len >= 2) {
891 buf[buf_len - 1] = '\0';
892 buf[buf_len - 2] = '\0';
/PHP_5_3/ext/spl/
H A Dspl_array.c159 int spl_array_serialize(zval *object, unsigned char **buffer, zend_uint *buf_len, zend_serialize_data *data TSRMLS_DC);
160 int spl_array_unserialize(zval **object, zend_class_entry *ce, const unsigned char *buf, zend_uint buf_len, zend_unserialize_data *data TSRMLS_DC);
1729 int spl_array_serialize(zval *object, unsigned char **buffer, zend_uint *buf_len, zend_serialize_data *data TSRMLS_DC) /* {{{ */ argument
1740 retval = zend_user_serialize(object, buffer, buf_len, data TSRMLS_CC);
1752 *buf_len = buf.len;
1762 void spl_array_unserialize_helper(spl_array_object *intern, const unsigned char *buf, int buf_len, php_unserialize_data_t *var_hash_p TSRMLS_DC) /* {{{ */ argument
1777 if (!php_var_unserialize(&pflags, &p, s + buf_len, var_hash_p TSRMLS_CC) || Z_TYPE_P(pflags) != IS_LONG) {
1803 if (!php_var_unserialize(&intern->array, &p, s + buf_len, var_hash_p TSRMLS_CC)) {
1819 if (!php_var_unserialize(&pmembers, &p, s + buf_len, var_hash_p TSRMLS_CC) || Z_TYPE_P(pmembers) != IS_ARRAY) {
1832 zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0 TSRMLS_CC, "Error at offset %ld of %d bytes", (long)((char*)p - (char *)buf), buf_len);
1843 int buf_len; local
1870 spl_array_unserialize(zval **object, zend_class_entry *ce, const unsigned char *buf, zend_uint buf_len, zend_unserialize_data *data TSRMLS_DC) argument
[all...]
H A Dspl_observer.c716 int buf_len; local
722 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &buf, &buf_len) == FAILURE) {
726 if (buf_len == 0) {
741 if (!php_var_unserialize(&pcount, &p, s + buf_len, NULL TSRMLS_CC) || Z_TYPE_P(pcount) != IS_LONG) {
761 if (!php_var_unserialize(&pentry, &p, s + buf_len, &var_hash TSRMLS_CC)) {
772 if (!php_var_unserialize(&pinf, &p, s + buf_len, &var_hash TSRMLS_CC)) {
804 if (!php_var_unserialize(&pmembers, &p, s + buf_len, &var_hash TSRMLS_CC) || Z_TYPE_P(pmembers) != IS_ARRAY) {
820 zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0 TSRMLS_CC, "Error at offset %ld of %d bytes", (long)((char*)p - buf), buf_len);

Completed in 66 milliseconds

12