1--TEST--
2Bug #68819 Fileinfo on specific file causes spurious OOM and/or segfault, var 2
3--SKIPIF--
4<?php require_once(__DIR__ . '/skipif.inc'); ?>
5--FILE--
6<?php
7
8$string = '';
9
10// These two in any order
11$string .= "\r\n";
12$string .= "''''";
13
14// Total string length > 8192
15$string .= str_repeat("a", 8184);
16
17// Ending in this string
18$string .= "say";
19
20$finfo = new finfo();
21$type = $finfo->buffer($string);
22var_dump($type);
23
24?>
25--EXPECT--
26string(60) "ASCII text, with very long lines, with CRLF line terminators"
27