From 157e243eeef98f7fd04d3fcd15eaf29a5d984a4c Mon Sep 17 00:00:00 2001 From: mark_story Date: Sat, 2 Jun 2012 10:09:58 -0400 Subject: [PATCH] Change named capture group syntax. This increases compatibility with really old version of PCRE used on CentOS. Refs #GH-681 --- lib/Cake/Console/ConsoleOutput.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Console/ConsoleOutput.php b/lib/Cake/Console/ConsoleOutput.php index 9b0bd3a96..f772db9a1 100644 --- a/lib/Cake/Console/ConsoleOutput.php +++ b/lib/Cake/Console/ConsoleOutput.php @@ -182,7 +182,7 @@ class ConsoleOutput { return preg_replace('##', '', $text); } return preg_replace_callback( - '/<(?[a-z0-9-_]+)>(?.*?)<\/(\1)>/ims', array($this, '_replaceTags'), $text + '/<(?P[a-z0-9-_]+)>(?P.*?)<\/(\1)>/ims', array($this, '_replaceTags'), $text ); }