/php-src/ext/pdo_dblib/ |
H A D | dblib_stmt.c | 323 data_len = dbconvert(NULL, coltype, data, data_len, SQLCHAR, (LPBYTE) tmp_data, tmp_data_len); in pdo_dblib_stmt_stringify_col() 325 if (data_len > 0) { in pdo_dblib_stmt_stringify_col() 330 while (data_len > 0 && tmp_data[data_len - 1] == ' ') { in pdo_dblib_stmt_stringify_col() 331 data_len--; in pdo_dblib_stmt_stringify_col() 334 ZVAL_STRINGL(zv, tmp_data, data_len); in pdo_dblib_stmt_stringify_col() 351 DBINT data_len, tmp_data_len; in pdo_dblib_stmt_get_col() local 355 data_len = dbdatlen(H->link, colno+1); in pdo_dblib_stmt_get_col() 357 if (data_len != 0 || data != NULL) { in pdo_dblib_stmt_get_col() 366 while (data_len>0 && data[data_len-1] == ' ') { /* nuke trailing whitespace */ in pdo_dblib_stmt_get_col() 367 data_len--; in pdo_dblib_stmt_get_col() [all …]
|
/php-src/sapi/fuzzer/ |
H A D | fuzzer-sapi.c | 241 char *filename, const char *data, size_t data_len, bool execute, in fuzzer_do_request_from_buffer() argument 263 file_handle.buf = emalloc(data_len + ZEND_MMAP_AHEAD); in fuzzer_do_request_from_buffer() 264 memcpy(file_handle.buf, data, data_len); in fuzzer_do_request_from_buffer() 265 memset(file_handle.buf + data_len, 0, ZEND_MMAP_AHEAD); in fuzzer_do_request_from_buffer() 266 file_handle.len = data_len; in fuzzer_do_request_from_buffer()
|
H A D | fuzzer-sapi.h | 25 char *filename, const char *data, size_t data_len, bool execute,
|
/php-src/ext/dom/ |
H A D | documentfragment.c | 65 size_t data_len = 0; in PHP_METHOD() local 70 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &data, &data_len) == FAILURE) { in PHP_METHOD()
|
/php-src/ext/hash/ |
H A D | hash.c | 372 if (CHECK_NULL_PATH(data, data_len)) { in php_hash_do_hash() 399 ops->hash_update(context, (unsigned char *) data, data_len); in php_hash_do_hash() 426 size_t data_len; in PHP_FUNCTION() local 432 Z_PARAM_STRING(data, data_len) in PHP_FUNCTION() 448 size_t data_len; in PHP_FUNCTION() local 454 Z_PARAM_STRING(data, data_len) in PHP_FUNCTION() 515 if (CHECK_NULL_PATH(data, data_len)) { in php_hash_do_hash_hmac() 583 size_t data_len, key_len; in PHP_FUNCTION() local 600 size_t data_len, key_len; in PHP_FUNCTION() local 1204 size_t data_len, key_len = 0; in PHP_FUNCTION() local [all …]
|
/php-src/ext/openssl/ |
H A D | php_openssl.h | 130 const char *data, size_t data_len, 138 const char *data, size_t data_len,
|
H A D | openssl.c | 6908 size_t data_len; in PHP_FUNCTION() local 6958 size_t data_len; in PHP_FUNCTION() local 7008 size_t data_len; in PHP_FUNCTION() local 7057 size_t data_len; in PHP_FUNCTION() local 7136 size_t data_len; local 7144 Z_PARAM_STRING(data, data_len) 7208 size_t data_len; local 7270 size_t data_len; local 7396 size_t data_len; local 7440 buf = emalloc(data_len + 1); [all …]
|
/php-src/ext/dom/lexbor/lexbor/dom/interfaces/ |
H A D | document.c | 340 const lxb_char_t *data, size_t data_len) in lxb_dom_document_create_processing_instruction() argument 347 const lxb_char_t *end = data + data_len; in lxb_dom_document_create_processing_instruction() 348 const lxb_char_t *ch = memchr(data, '?', sizeof(lxb_char_t) * data_len); in lxb_dom_document_create_processing_instruction() 370 lexbor_str_init(&pi->char_data.data, document->text, data_len); in lxb_dom_document_create_processing_instruction() 382 lexbor_str_append(&pi->char_data.data, document->text, data, data_len); in lxb_dom_document_create_processing_instruction()
|
H A D | document.h | 125 const lxb_char_t *data, size_t data_len);
|
/php-src/ext/xml/ |
H A D | compat.c | 294 build_comment(const xmlChar *data, size_t data_len, xmlChar **comment, size_t *comment_len) in build_comment() argument 296 *comment_len = data_len + 7; in build_comment() 300 memcpy(*comment + 4, data, data_len); in build_comment() 301 memcpy(*comment + 4 + data_len, "-->", 3); in build_comment() 544 XML_Parse(XML_Parser parser, const XML_Char *data, int data_len, int is_final) in XML_Parse() argument 546 int error = xmlParseChunk(parser->parser, (char *) data, data_len, is_final); in XML_Parse()
|
H A D | expat_compat.h | 144 PHP_XML_API int XML_Parse(XML_Parser, const XML_Char *, int data_len, int is_final);
|
H A D | xml.c | 268 static int xml_parse_helper(xml_parser *parser, const char *data, size_t data_len, bool is_final) in xml_parse_helper() argument 288 int ret = XML_Parse(parser->parser, (const XML_Char *) data, data_len, is_final); in xml_parse_helper() 1332 size_t data_len; in PHP_FUNCTION() local 1335 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "Os|b", &pind, xml_parser_ce, &data, &data_len, &isFina… in PHP_FUNCTION() 1344 RETURN_LONG(xml_parse_helper(parser, data, data_len, isFinal)); in PHP_FUNCTION() 1355 size_t data_len; in PHP_FUNCTION() local 1357 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "Osz|z", &pind, xml_parser_ce, &data, &data_len, &xdata… in PHP_FUNCTION() 1394 RETURN_LONG(xml_parse_helper(parser, data, data_len, true)); in PHP_FUNCTION()
|
/php-src/main/streams/ |
H A D | memory.c | 53 size_t data_len = ZSTR_LEN(ms->data); in php_stream_memory_write() local 55 ms->fpos = data_len; in php_stream_memory_write() 57 if (ms->fpos + count > data_len) { in php_stream_memory_write() 59 if (ms->fpos > data_len) { in php_stream_memory_write() 61 memset(ZSTR_VAL(ms->data) + data_len, 0, ms->fpos - data_len); in php_stream_memory_write()
|
/php-src/ext/sockets/ |
H A D | conversions.c | 858 size_t data_len, in from_zval_write_control() local 899 data_len = entry->calc_space(data_elem, ctx); in from_zval_write_control() 904 data_len = entry->size; in from_zval_write_control() 906 req_space = CMSG_SPACE(data_len); in from_zval_write_control() 920 cmsghdr->cmsg_len = CMSG_LEN(data_len); in from_zval_write_control()
|
/php-src/ext/simplexml/ |
H A D | simplexml.c | 2254 size_t data_len; in PHP_FUNCTION() local 2262 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|C!lSb", &data, &data_len, &ce, &options, &ns, &ispre… in PHP_FUNCTION() 2266 if (ZEND_SIZE_T_INT_OVFL(data_len)) { in PHP_FUNCTION() 2280 docp = xmlReadMemory(data, (int)data_len, NULL, NULL, (int)options); in PHP_FUNCTION() 2309 size_t data_len; in PHP_METHOD() local 2314 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|lbSb", &data, &data_len, &options, &is_url, &ns, &is… in PHP_METHOD() 2318 if (ZEND_SIZE_T_INT_OVFL(data_len)) { in PHP_METHOD() 2332 …docp = is_url ? xmlReadFile(data, NULL, (int)options) : xmlReadMemory(data, (int)data_len, NULL, N… in PHP_METHOD()
|
/php-src/ext/gmp/ |
H A D | gmp.c | 790 size_t data_len; in ZEND_FUNCTION() local 796 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|ll", &data, &data_len, &size, &options) == FAILURE) { in ZEND_FUNCTION() 804 if ((data_len % size) != 0) { in ZEND_FUNCTION() 811 mpz_import(gmpnumber, data_len / size, order, size, endian, 0, data); in ZEND_FUNCTION()
|
/php-src/ext/mysqli/ |
H A D | mysqli_api.c | 1401 size_t data_len; in PHP_FUNCTION() local 1403 … getThis(), "Ols", &mysql_stmt, mysqli_stmt_class_entry, ¶m_nr, &data, &data_len) == FAILURE) { in PHP_FUNCTION() 1414 if (mysql_stmt_send_long_data(stmt->stmt, param_nr, data, data_len)) { in PHP_FUNCTION()
|