commit e0674112e931f6c3b0082edffc85e199077529e5
Author: Randy Fay <randy@randyfay.com>
Date:   Wed Nov 9 21:28:07 2011 -0700

    Issue #890622 by rfay: Fix preg_replace_callback instances that broke module

diff --git a/codefilter.module b/codefilter.module
index 28d6d1d..7a7d2d0 100644
--- a/codefilter.module
+++ b/codefilter.module
@@ -23,10 +23,10 @@ function codefilter_init() {
 /**
  * Processes chunks of escaped PHP code into HTML.
  */
-function codefilter_process_php($text) {
+function codefilter_process_php($matches) {
   // Note, pay attention to odd preg_replace-with-/e behaviour on slashes
   // Undo possible linebreak filter conversion
-  $text = preg_replace('@</?(br|p)\s*/?>@', '', str_replace('\"', '"', $text));
+  $text = preg_replace('@</?(br|p)\s*/?>@', '', str_replace('\"', '"', $matches[1]));
   // Undo the escaping in the prepare step
   $text = decode_entities($text);
   // Trim leading and trailing linebreaks
@@ -54,9 +54,9 @@ function codefilter_process_php_inline($matches) {
 /**
  * Processes chunks of escaped code into HTML.
  */
-function codefilter_process_code($text) {
+function codefilter_process_code($matches) {
   // Undo linebreak escaping
-  $text = str_replace('&#10;', "\n", $text);
+  $text = str_replace('&#10;', "\n", $matches[1]);
   // Inline or block level piece?
   $multiline = strpos($text, "\n") !== FALSE;
   // Note, pay attention to odd preg_replace-with-/e behaviour on slashes
