Lines Matching refs:len

522 	long len;  in PHP_FUNCTION()  local
553 if ((len = php_stream_copy_to_mem(stream, &contents, maxlen, 0)) > 0) { in PHP_FUNCTION()
554 if (len > INT_MAX) { in PHP_FUNCTION()
555 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "content truncated from %ld to %d bytes", len, INT_MAX… in PHP_FUNCTION()
556 len = INT_MAX; in PHP_FUNCTION()
558 RETVAL_STRINGL(contents, len, 0); in PHP_FUNCTION()
559 } else if (len == 0) { in PHP_FUNCTION()
625 size_t len; in PHP_FUNCTION() local
626 if (php_stream_copy_to_stream_ex(srcstream, stream, PHP_STREAM_COPY_ALL, &len) != SUCCESS) { in PHP_FUNCTION()
629 if (len > LONG_MAX) { in PHP_FUNCTION()
630 …LL TSRMLS_CC, E_WARNING, "content truncated from %lu to %ld bytes", (unsigned long) len, LONG_MAX); in PHP_FUNCTION()
631 len = LONG_MAX; in PHP_FUNCTION()
633 numbytes = len; in PHP_FUNCTION()
1005 long len = 1024; in PHP_FUNCTION() local
1011 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|l", &arg1, &len) == FAILURE) { in PHP_FUNCTION()
1024 if (len <= 0) { in PHP_FUNCTION()
1029 buf = ecalloc(len + 1, sizeof(char)); in PHP_FUNCTION()
1030 if (php_stream_get_line(stream, buf, len, &line_len) == NULL) { in PHP_FUNCTION()
1038 if (argc > 1 && Z_STRLEN_P(return_value) < len / 2) { in PHP_FUNCTION()
1085 size_t len = 0; in PHP_FUNCTION() local
1104 len = (size_t) bytes; in PHP_FUNCTION()
1105 buf = safe_emalloc(sizeof(char), (len + 1), 0); in PHP_FUNCTION()
1107 memset(buf, 0, len + 1); in PHP_FUNCTION()
1110 if ((retval = php_stream_get_line(stream, buf, len, &actual_len)) == NULL) { in PHP_FUNCTION()
1131 size_t len; in PHP_FUNCTION() local
1150 buf = php_stream_get_line((php_stream *) what, NULL, 0, &len); in PHP_FUNCTION()
1747 long len; in PHP_FUNCTION() local
1750 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl", &arg1, &len) == FAILURE) { in PHP_FUNCTION()
1756 if (len <= 0) { in PHP_FUNCTION()
1761 if (len > INT_MAX) { in PHP_FUNCTION()
1767 Z_STRVAL_P(return_value) = emalloc(len + 1); in PHP_FUNCTION()
1768 Z_STRLEN_P(return_value) = php_stream_read(stream, Z_STRVAL_P(return_value), len); in PHP_FUNCTION()
1776 static const char *php_fgetcsv_lookup_trailing_spaces(const char *ptr, size_t len, const char delim… in php_fgetcsv_lookup_trailing_spaces() argument
1781 while (len > 0) { in php_fgetcsv_lookup_trailing_spaces()
1782 inc_len = (*ptr == '\0' ? 1: php_mblen(ptr, len)); in php_fgetcsv_lookup_trailing_spaces()
1798 len -= inc_len; in php_fgetcsv_lookup_trailing_spaces()
1939 ret = php_stream_write(stream, csvline.c, csvline.len); in php_fputcsv()
1957 long len = 0; in PHP_FUNCTION() local
2017 len = Z_LVAL_PP(len_zv); in PHP_FUNCTION()
2018 if (len < 0) { in PHP_FUNCTION()
2021 } else if (len == 0) { in PHP_FUNCTION()
2022 len = -1; in PHP_FUNCTION()
2025 len = -1; in PHP_FUNCTION()
2031 if (len < 0) { in PHP_FUNCTION()
2036 buf = emalloc(len + 1); in PHP_FUNCTION()
2037 if (php_stream_get_line(stream, buf, len + 1, &buf_len) == NULL) { in PHP_FUNCTION()