summaryrefslogtreecommitdiff
path: root/ext/standard/tests/streams/bug72221.phpt
blob: 8f30099cabedc998d1a22ee7cf73f3e9ae8260d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
--TEST--
Bug #72221 (Segmentation fault in stream_get_line / zend_memnstr_ex)
--FILE--
<?php
$fp = fopen("php://memory", "r+");
fwrite($fp, str_repeat("baad", 1024*1024));
rewind($fp);
stream_get_line($fp, 1024*1024*2, "aaaa");
echo "Done\n";
--EXPECT--
Done