bgarrels / textpattern

Automatically exported from code.google.com/p/textpattern
0 stars 0 forks source link

Textile with deprecated function preg_replace and /e modifier #398

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I got a lot of warnings with textile:

Deprecated function: preg_replace(): The /e modifier is deprecated, use 
preg_replace_callback instead in Textile->footnoteRef() (line 1860 of 
/../classTextile.php)

PHP version: 5.5.5
Tested version of textpattern: 4.5.5

Original issue reported on code.google.com by a.mei...@alphanodes.com on 10 Nov 2013 at 12:29

GoogleCodeExporter commented 9 years ago
Thank you for your report. This is known issue.

We are using the latest Textile 2.4.x tree release (v2.4.1) in Textpattern 
4.5.x. To fix this we would have to update to Textile 2.5 tree, and jump to a 
next major release. Problem is, as a major release, 2.5.x is not backwards 
compatible with 2.4.x. If we update, all plugins etc. that use Textile will 
start working differently and/or break.

To use 2.5 on Textpattern, which sports localized interface, you would have to 
write a wrapper for Textile class as is we have done in 4.6-dev. Old calls 
targeting Textile will generate wrong output and/or break.

We probably should address this at Textile's end; patch updates (e.g. 4.5.6) 
can not break backwards compatibility or cause feature changes.

Original comment by jukka.m.svahn on 24 Nov 2013 at 12:36

GoogleCodeExporter commented 9 years ago
For reference, Textile is a separate project:
https://github.com/textile/php-textile

Original comment by jukka.m.svahn on 24 Nov 2013 at 12:39

GoogleCodeExporter commented 9 years ago
This has been resolved.

Original comment by jukka.m.svahn on 5 Apr 2014 at 3:09