Home
last modified time | relevance | path

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

12

/PHP-5.3/ext/ereg/
H A Dereg.c250 size_t buf_len; in php_ereg_eprint() local
255 if (buf_len) { in php_ereg_eprint()
262 buf_len = 0; in php_ereg_eprint()
272 if (buf_len) { in php_ereg_eprint()
412 int buf_len; in php_ereg_replace() local
474 if (new_l + 1 > buf_len) { in php_ereg_replace()
475 buf_len = 1 + buf_len + 2 * new_l; in php_ereg_replace()
476 nbuf = emalloc(buf_len); in php_ereg_replace()
478 nbuf[buf_len - 1] = '\0'; in php_ereg_replace()
513 buf_len = 1 + buf_len + 2 * new_l; in php_ereg_replace()
[all …]
/PHP-5.3/Zend/
H A Dzend_interfaces.h64 ZEND_API int zend_user_serialize(zval *object, unsigned char **buffer, zend_uint *buf_len, zend_ser…
65 …zval **object, zend_class_entry *ce, const unsigned char *buf, zend_uint buf_len, zend_unserialize…
67 ZEND_API int zend_class_serialize_deny(zval *object, unsigned char **buffer, zend_uint *buf_len, ze…
68 …zval **object, zend_class_entry *ce, const unsigned char *buf, zend_uint buf_len, zend_unserialize…
H A Dzend_interfaces.c426 ZEND_API int zend_user_serialize(zval *object, unsigned char **buffer, zend_uint *buf_len, zend_ser… in zend_user_serialize() argument
445 *buf_len = Z_STRLEN_P(retval); in zend_user_serialize()
463 …zval **object, zend_class_entry *ce, const unsigned char *buf, zend_uint buf_len, zend_unserialize… in zend_user_unserialize() argument
470 ZVAL_STRINGL(zdata, (char*)buf, buf_len, 1); in zend_user_unserialize()
484 ZEND_API int zend_class_serialize_deny(zval *object, unsigned char **buffer, zend_uint *buf_len, ze… in zend_class_serialize_deny() argument
492 …zval **object, zend_class_entry *ce, const unsigned char *buf, zend_uint buf_len, zend_unserialize… in zend_class_unserialize_deny() argument
H A Dzend.h457 …int (*serialize)(zval *object, unsigned char **buffer, zend_uint *buf_len, zend_serialize_data *da…
458 …zval **object, zend_class_entry *ce, const unsigned char *buf, zend_uint buf_len, zend_unserialize…
/PHP-5.3/ext/mysqlnd/
H A Dmysqlnd_priv.h108 #define SET_NEW_MESSAGE(buf, buf_len, message, len, persistent) \ argument
118 (buf_len) = (len); \
121 #define SET_EMPTY_MESSAGE(buf, buf_len, persistent) \ argument
127 (buf_len) = 0; \
H A Dmysqlnd_wireprotocol.c216 php_mysqlnd_read_error_from_line(zend_uchar *buf, size_t buf_len, in php_mysqlnd_read_error_from_line() argument
228 if (buf_len > 2) { in php_mysqlnd_read_error_from_line()
237 if ((buf_len - (p - buf)) >= MYSQLND_SQLSTATE_LENGTH) { in php_mysqlnd_read_error_from_line()
244 if ((buf_len - (p - buf)) > 0) { in php_mysqlnd_read_error_from_line()
568 packet->message_len = MIN(i, buf_len - (p - begin)); in php_mysqlnd_ok_read()
618 size_t buf_len = conn->net->cmd_buffer.length; in php_mysqlnd_eof_read() local
765 size_t buf_len = conn->net->cmd_buffer.length; in php_mysqlnd_rset_header_read() local
904 size_t buf_len = conn->net->cmd_buffer.length, total_len = 0; in php_mysqlnd_rset_field_read() local
1654 size_t buf_len = conn->net->cmd_buffer.length; in php_mysqlnd_stats_read() local
1696 size_t buf_len = conn->net->cmd_buffer.length; in php_mysqlnd_prepare_read() local
[all …]
H A Dmysqlnd_ps_codec.c601 …xecute_store_params(MYSQLND_STMT * s, zend_uchar **buf, zend_uchar **p, size_t *buf_len TSRMLS_DC) in mysqlnd_stmt_execute_store_params()
606 size_t left = (*buf_len - (*p - *buf)); in mysqlnd_stmt_execute_store_params()
621 *buf_len = offset + null_count + 20; in mysqlnd_stmt_execute_store_params()
622 tmp_buf = mnd_emalloc(*buf_len); in mysqlnd_stmt_execute_store_params()
683 *buf_len = offset + stmt->param_count * 2 + 20; in mysqlnd_stmt_execute_store_params()
684 tmp_buf = mnd_emalloc(*buf_len); in mysqlnd_stmt_execute_store_params()
828 left = (*buf_len - (*p - *buf)); in mysqlnd_stmt_execute_store_params()
832 *buf_len = offset + data_size + 10; /* Allocate + 10 for safety */ in mysqlnd_stmt_execute_store_params()
833 tmp_buf = mnd_emalloc(*buf_len); in mysqlnd_stmt_execute_store_params()
H A Dmysqlnd_loaddata.c88 int mysqlnd_local_infile_read(void *ptr, char *buf, unsigned int buf_len TSRMLS_DC) in mysqlnd_local_infile_read()
95 count = (int)php_stream_read(info->fd, buf, buf_len); in mysqlnd_local_infile_read()
/PHP-5.3/sapi/roxen/
H A Droxen.c546 int buf_len; in php_roxen_hash_environment() local
547 buf_len = MIN(511, ind->u.string->len); in php_roxen_hash_environment()
548 strncpy(buf, ind->u.string->str, buf_len); in php_roxen_hash_environment()
549 buf[buf_len] = '\0'; /* Terminate correctly */ in php_roxen_hash_environment()
555 zend_hash_update(&EG(symbol_table), buf, buf_len + 1, &zvalue, sizeof(zval *), NULL); in php_roxen_hash_environment()
/PHP-5.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.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.c656 char* XMLRPC_VALUE_ToXML(XMLRPC_VALUE val, int* buf_len) { in XMLRPC_VALUE_ToXML() argument
661 pRet = xml_elem_serialize_to_string(root_elem, NULL, buf_len); in XMLRPC_VALUE_ToXML()
690 char* XMLRPC_REQUEST_ToXML(XMLRPC_REQUEST request, int* buf_len) { in XMLRPC_REQUEST_ToXML() argument
709 buf_len); in XMLRPC_REQUEST_ToXML()
/PHP-5.3/ext/spl/
H A Dspl_array.c1740 retval = zend_user_serialize(object, buffer, buf_len, data TSRMLS_CC); in spl_array_serialize()
1752 *buf_len = buf.len; in spl_array_serialize()
1777 …if (!php_var_unserialize(&pflags, &p, s + buf_len, var_hash_p TSRMLS_CC) || Z_TYPE_P(pflags) != IS… in spl_array_unserialize_helper()
1803 if (!php_var_unserialize(&intern->array, &p, s + buf_len, var_hash_p TSRMLS_CC)) { in spl_array_unserialize_helper()
1819 …if (!php_var_unserialize(&pmembers, &p, s + buf_len, var_hash_p TSRMLS_CC) || Z_TYPE_P(pmembers) !… in spl_array_unserialize_helper()
1843 int buf_len; in SPL_METHOD() local
1847 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &buf, &buf_len) == FAILURE) { in SPL_METHOD()
1851 if (buf_len == 0) { in SPL_METHOD()
1861 …spl_array_unserialize_helper(intern, (const unsigned char *)buf, buf_len, intern->unserialize_data… in SPL_METHOD()
1881 ZVAL_STRINGL(zdata, (char *)buf, buf_len, 1); in spl_array_unserialize()
[all …]
H A Dspl_observer.c716 int buf_len; in SPL_METHOD() local
722 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &buf, &buf_len) == FAILURE) { in SPL_METHOD()
726 if (buf_len == 0) { in SPL_METHOD()
741 …if (!php_var_unserialize(&pcount, &p, s + buf_len, NULL TSRMLS_CC) || Z_TYPE_P(pcount) != IS_LONG)… in SPL_METHOD()
761 if (!php_var_unserialize(&pentry, &p, s + buf_len, &var_hash TSRMLS_CC)) { in SPL_METHOD()
772 if (!php_var_unserialize(&pinf, &p, s + buf_len, &var_hash TSRMLS_CC)) { in SPL_METHOD()
804 …if (!php_var_unserialize(&pmembers, &p, s + buf_len, &var_hash TSRMLS_CC) || Z_TYPE_P(pmembers) !=… in SPL_METHOD()
820 …edValueException, 0 TSRMLS_CC, "Error at offset %ld of %d bytes", (long)((char*)p - buf), buf_len); in SPL_METHOD()
/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 */ in _php_ibase_attach_db() local
870 if (dpb_args[i] && args[i] && len[i] && buf_len > 0) { in _php_ibase_attach_db()
871 dpb_len = slprintf(dpb, buf_len, "%c%c%s", dpb_args[i],(unsigned char)len[i],args[i]); in _php_ibase_attach_db()
873 buf_len -= dpb_len; in _php_ibase_attach_db()
876 if (largs[BUF] && buf_len > 0) { in _php_ibase_attach_db()
877 dpb_len = slprintf(dpb, buf_len, "%c\2%c%c", isc_dpb_num_buffers, in _php_ibase_attach_db()
880 buf_len -= dpb_len; in _php_ibase_attach_db()
882 if (largs[SYNC] && buf_len > 0) { in _php_ibase_attach_db()
883 …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()
885 buf_len -= dpb_len; in _php_ibase_attach_db()
/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) …
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, &…
1679 …retval = sendto(php_sock->bsd_socket, buf, (len > buf_len) ? buf_len : len, flags, (struct sockadd…
1695 …retval = sendto(php_sock->bsd_socket, buf, (len > buf_len) ? buf_len : len, flags, (struct sockadd…
1711 …retval = sendto(php_sock->bsd_socket, buf, (len > buf_len) ? buf_len : len, flags, (struct sockadd…
/PHP-5.3/ext/pdo_firebird/
H A Dfirebird_driver.c655 short buf_len = 256, dpb_len; in pdo_firebird_handle_factory() local
671 if (dpb_values[i] && buf_len > 0) { in pdo_firebird_handle_factory()
672 dpb_len = slprintf(dpb, buf_len, "%c%c%s", dpb_flags[i], (unsigned char)strlen(dpb_values[i]), in pdo_firebird_handle_factory()
675 buf_len -= dpb_len; in pdo_firebird_handle_factory()
/PHP-5.3/ext/standard/
H A Dfile.h82 …stream *stream, char delimiter, char enclosure, char escape_char, size_t buf_len, char *buf, zval …
H A Dvar.c922 int buf_len; in PHP_FUNCTION() local
926 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &buf, &buf_len) == FAILURE) { in PHP_FUNCTION()
930 if (buf_len == 0) { in PHP_FUNCTION()
936 if (!php_var_unserialize(&return_value, &p, p + buf_len, &var_hash TSRMLS_CC)) { in PHP_FUNCTION()
939 …cref(NULL TSRMLS_CC, E_NOTICE, "Error at offset %ld of %d bytes", (long)((char*)p - buf), buf_len); in PHP_FUNCTION()
H A Dfile.c2078 size_t buf_len; in PHP_FUNCTION() local
2152 if ((buf = php_stream_get_line(stream, NULL, 0, &buf_len)) == NULL) { in PHP_FUNCTION()
2157 if (php_stream_get_line(stream, buf, len + 1, &buf_len) == NULL) { in PHP_FUNCTION()
2163 php_fgetcsv(stream, delimiter, enclosure, escape, buf_len, buf, return_value TSRMLS_CC); in PHP_FUNCTION()
2167 …stream *stream, char delimiter, char enclosure, char escape_char, size_t buf_len, char *buf, zval … in php_fgetcsv() argument
2182 tptr = (char *)php_fgetcsv_lookup_trailing_spaces(buf, buf_len, delimiter TSRMLS_CC); in php_fgetcsv()
2183 line_end_len = buf_len - (size_t)(tptr - buf); in php_fgetcsv()
2187 temp_len = buf_len; in php_fgetcsv()
2275 buf_len = new_len; in php_fgetcsv()
2279 … line_end = limit = (char *)php_fgetcsv_lookup_trailing_spaces(buf, buf_len, delimiter TSRMLS_CC); in php_fgetcsv()
[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) {
636 *metadata = (zval *) pemalloc(buf_len, 1);
637 memcpy(*metadata, *buffer, buf_len);
638 *buffer += buf_len;
646 *buffer += buf_len;
1537 if (buf_len < search_len) {
1544 if (!(c = memchr(c + 1, search[0], buf_len - search_len - so_far))) {
[all …]
/PHP-5.3/ext/mysqli/
H A Dmysqli.c1398 static int php_local_infile_read(void *ptr, char *buf, uint buf_len) in php_local_infile_read() argument
1416 int count = (int)php_stream_read(mysql->li_stream, buf, buf_len); in php_local_infile_read()
1433 ZVAL_LONG(*callback_args[2], buf_len); in php_local_infile_read()
1454 } else if (rc > buf_len) { in php_local_infile_read()
/PHP-5.3/main/
H A Dmain.c886 int buf_len; in php_win32_docref2_from_error() local
889 buf_len = strlen(buf); in php_win32_docref2_from_error()
890 if (buf_len >= 2) { in php_win32_docref2_from_error()
891 buf[buf_len - 1] = '\0'; in php_win32_docref2_from_error()
892 buf[buf_len - 2] = '\0'; in php_win32_docref2_from_error()
/PHP-5.3/ext/xmlrpc/
H A Dxmlrpc-epi-php.c1153 int buf_len = 0; in PHP_FUNCTION() local
1169 outBuf = XMLRPC_REQUEST_ToXML(xResponse, &buf_len); in PHP_FUNCTION()
1171 RETVAL_STRINGL(outBuf, buf_len, 1); in PHP_FUNCTION()

Completed in 165 milliseconds

12