1--TEST-- 2Bug #68819 Fileinfo on specific file causes spurious OOM and/or segfault, var 2 3--EXTENSIONS-- 4fileinfo 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(67) "ASCII text, with very long lines (8191), with CRLF line terminators" 27