1--TEST-- 2Bug #63240: stream_get_line() return contains delimiter string 3--FILE-- 4<?php 5$fd = fopen('php://temp', 'r+'); 6$delimiter = 'MM'; 7$str = str_repeat('.', 8191) . $delimiter . "rest"; 8fwrite($fd, $str); 9rewind($fd); 10$line = stream_get_line($fd, 9000, $delimiter); 11var_dump(strlen($line)); 12$line = stream_get_line($fd, 9000, $delimiter); 13var_dump($line); 14?> 15--EXPECT-- 16int(8191) 17string(4) "rest" 18