Yes the /e is that yelling deprecated modifier with PHP >= 5.5.x versions.
I am sorry my code wasn't right, beside the fact that I was missing a '.
It is much harder to solve, since we must now have two recursive preg_replace_callback functions.
I missed that in first.
It seems this isn't solvable without changing some more code and having to jump to a far more advanced major version, which breaks backwards compatibility. See
http://code.google.com/p/textpattern/is ... ail?id=398
What happens when you just try to silence the deprecated notice by @ ?
Code: Select all
// -------------------------------------------------------------
function footnoteRef($text)
{
return @preg_replace('/\b\[([0-9]+)\](\s)?/Ue',
'$this->footnoteID(\'\1\',\'\2\')', $text);
}
(deprecated just means: "will be purged in future", but is still working.)
If that does not work, you could add 'E_DEPRECATED' to serendipity_config.inc.php file at line 57:
Code: Select all
error_reporting(E_ALL & ~(E_STRICT|E_NOTICE));
like
Code: Select all
error_reporting(E_ALL & ~(E_STRICT|E_DEPRECATED|E_NOTICE));
[
To have this set up for all, would mean to not know about future "errors" in our codebase like this, but in this case we should think about ist. Or any is able to update textile to a compat version. @Garvin?]