Issue #2360133: Use of preg_match_all() causes warning with PHP < 5.4