Lines Matching refs:len

637 			size_t len;  in PHP_FUNCTION()  local
638 if (php_stream_copy_to_stream_ex(srcstream, stream, PHP_STREAM_COPY_ALL, &len) != SUCCESS) { in PHP_FUNCTION()
641 if (len > ZEND_LONG_MAX) { in PHP_FUNCTION()
642 …php_error_docref(NULL, E_WARNING, "content truncated from %zu to " ZEND_LONG_FMT " bytes", len, ZE… in PHP_FUNCTION()
643 len = ZEND_LONG_MAX; in PHP_FUNCTION()
645 numbytes = len; in PHP_FUNCTION()
1013 zend_long len = 1024; in PHP_FUNCTION() local
1023 Z_PARAM_LONG(len) in PHP_FUNCTION()
1038 if (len <= 0) { in PHP_FUNCTION()
1043 str = zend_string_alloc(len, 0); in PHP_FUNCTION()
1044 if (php_stream_get_line(stream, ZSTR_VAL(str), len, &line_len) == NULL) { in PHP_FUNCTION()
1050 if (line_len < (size_t)len / 2) { in PHP_FUNCTION()
1094 size_t len = 0; in PHP_FUNCTION() local
1116 len = (size_t) bytes; in PHP_FUNCTION()
1117 buf = safe_emalloc(sizeof(char), (len + 1), 0); in PHP_FUNCTION()
1119 memset(buf, 0, len + 1); in PHP_FUNCTION()
1122 if ((retval = php_stream_get_line(stream, buf, len, &actual_len)) == NULL) { in PHP_FUNCTION()
1146 size_t len; in PHP_FUNCTION() local
1164 buf = php_stream_get_line((php_stream *) what, NULL, 0, &len); in PHP_FUNCTION()
1786 zend_long len; in PHP_FUNCTION() local
1792 Z_PARAM_LONG(len) in PHP_FUNCTION()
1797 if (len <= 0) { in PHP_FUNCTION()
1802 str = php_stream_read_to_str(stream, len); in PHP_FUNCTION()
1812 static const char *php_fgetcsv_lookup_trailing_spaces(const char *ptr, size_t len, const char delim… in php_fgetcsv_lookup_trailing_spaces() argument
1817 while (len > 0) { in php_fgetcsv_lookup_trailing_spaces()
1818 inc_len = (*ptr == '\0' ? 1 : php_mblen(ptr, len)); in php_fgetcsv_lookup_trailing_spaces()
1834 len -= inc_len; in php_fgetcsv_lookup_trailing_spaces()
1991 zend_long len = 0; in PHP_FUNCTION() local
2052 len = zval_get_long(len_zv); in PHP_FUNCTION()
2053 if (len < 0) { in PHP_FUNCTION()
2056 } else if (len == 0) { in PHP_FUNCTION()
2057 len = -1; in PHP_FUNCTION()
2060 len = -1; in PHP_FUNCTION()
2066 if (len < 0) { in PHP_FUNCTION()
2071 buf = emalloc(len + 1); in PHP_FUNCTION()
2072 if (php_stream_get_line(stream, buf, len + 1, &buf_len) == NULL) { in PHP_FUNCTION()