1--TEST--
2Bug #72221 (Segmentation fault in stream_get_line / zend_memnstr_ex)
3--FILE--
4<?php
5$fp = fopen("php://memory", "r+");
6fwrite($fp, str_repeat("baad", 1024*1024));
7rewind($fp);
8stream_get_line($fp, 1024*1024*2, "aaaa");
9echo "Done\n";
10--EXPECT--
11Done
12