Re: [pmwiki-users] Deprecated preg_replace() eval feature in PHP 5.5

2014-05-08 Thread Petko Yotov
Thanks for your message and code. While I appreciate the benefits of automatic code rewriting, this one will contain text from the page sources to be eval()'d by PHP and may potentially open huge security holes. I feel it is really less of a headache to just rewrite the Markup() calls of

Re: [pmwiki-users] Deprecated preg_replace() eval feature in PHP 5.5

2014-05-08 Thread Martin Rüegg
Petko Yotov <5ko 5ko.fr> writes: > > I have committed to the Subversion repository the latest code with the new > formats. There are many small changes on many lines so a diff is hardly > usable. > > A few new functions were added: > PCCF() PmWiki Create Callback Function > PPRE() PmW

Re: [pmwiki-users] Deprecated preg_replace() eval feature in PHP 5.5

2013-10-23 Thread Petko Yotov
Eric Forgeot writes: Does this concern all markup rules, or only markup in pmwiki with the /e switch? (I guess it's the later, but I wanted to be sure) so Markup("'*", "inline", "/'\\*(.*?)\\*'/", "$1");# '*bold*' will remain the same? All existing Markup() rules continue to work exactly

Re: [pmwiki-users] Deprecated preg_replace() eval feature in PHP 5.5

2013-10-23 Thread Eric Forgeot
Does this concern all markup rules, or only markup in pmwiki with the /e switch? (I guess it's the later, but I wanted to be sure) so Markup("'*", "inline", "/'\\*(.*?)\\*'/", "$1");# '*bold*' will remain the same? 2013/9/27 Petko Yotov <5...@5ko.fr>: > John Rankin writes: >> >> On 21/09/1

Re: [pmwiki-users] Deprecated preg_replace() eval feature in PHP 5.5

2013-09-26 Thread Petko Yotov
John Rankin writes: On 21/09/13 10:59 AM, Petko Yotov wrote: A few new functions were added: PCCF() PmWiki Create Callback Function PPRE() PmWiki preg_replace eval PPRA() PmWiki preg_replace arrays Markup_e() like Markup() but with replacement evaluated in a Callback We'll document these f

Re: [pmwiki-users] Deprecated preg_replace() eval feature in PHP 5.5

2013-09-26 Thread John Rankin
On 21/09/13 10:59 AM, Petko Yotov wrote: A few new functions were added: PCCF() PmWiki Create Callback Function PPRE() PmWiki preg_replace eval PPRA() PmWiki preg_replace arrays Markup_e() like Markup() but with replacement evaluated in a Callback We'll document these functions once we're s

Re: [pmwiki-users] Deprecated preg_replace() eval feature in PHP 5.5

2013-09-21 Thread Petko Yotov
I have just committed the latest code to the repository, fixing a bug when UTF-8 is not enabled. On my own PHP 5.5 installation I see no more warnings about the deprecated feature, but it needs more testing. Petko Petko Yotov writes: If anyone would like to help, please get the latest code

Re: [pmwiki-users] Deprecated preg_replace() eval feature in PHP 5.5

2013-09-20 Thread Simon
Compliments to you Petko, and PM for this work and progress. This is a major effort, well done. Simon On 21 September 2013 10:59, Petko Yotov <5...@5ko.fr> wrote: > I have committed to the Subversion repository the latest code with the new > formats. There are many small changes on many lines

Re: [pmwiki-users] Deprecated preg_replace() eval feature in PHP 5.5

2013-09-20 Thread Petko Yotov
I have committed to the Subversion repository the latest code with the new formats. There are many small changes on many lines so a diff is hardly usable. A few new functions were added: PCCF() PmWiki Create Callback Function PPRE() PmWiki preg_replace eval PPRA() PmWiki preg_replace array

[pmwiki-users] Deprecated preg_replace() eval feature in PHP 5.5

2013-09-19 Thread Petko Yotov
Hello. Patrick and I have started addressing the issue of a deprecated function in future versions of PHP. Partick found the time to look into the problem and suggested a solution which I couldn't see myself in the last 3-4 months. I have worked on it yesterday and today and the migration a