diff options
Diffstat (limited to 'ext/standard/tests/streams/bug72221.phpt')
-rw-r--r-- | ext/standard/tests/streams/bug72221.phpt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/standard/tests/streams/bug72221.phpt b/ext/standard/tests/streams/bug72221.phpt new file mode 100644 index 0000000000..8f30099cab --- /dev/null +++ b/ext/standard/tests/streams/bug72221.phpt @@ -0,0 +1,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 |