diff -u b/mailmime.inc b/mailmime.inc --- b/mailmime.inc +++ b/mailmime.inc @@ -781,9 +781,7 @@ foreach ($input as $name => $value) { $name = preg_replace_callback( '/([[:alpha:]])([[:alpha:]]+)/', - function($matches) { - return strtoupper($matches[1]) . strtolower($matches[2]); - }, + create_function('$matches', 'return strtoupper($matches[1]) . strtolower($matches[2]);'), $name ); $name = preg_replace(