1--TEST-- 2Bug #77827 (preg_match does not ignore \r in regex flags) 3--FILE-- 4<?php 5var_dump( 6 preg_match("/foo/i\r", 'FOO'), 7 preg_last_error() 8); 9?> 10===DONE=== 11--EXPECT-- 12int(1) 13int(0) 14===DONE=== 15