
gsar at ActiveState
Jun 11, 2001, 8:03 PM
Post #3 of 3
(1164 views)
Permalink
|
|
Re: Apache::ASP v2.11 Parser optimization broke under perl 5.6.1
[In reply to]
|
|
On Wed, 11 Jul 2001 12:44:01 PDT, Joshua Chamas wrote: >Hey perl porters & Apache::ASP list: > >This parser optimization, released in Apache::ASP 2.11, >broke Apache::ASP under perl 5.6.1 ( + 5.7.1 I'm guessing >from a cpan-testers FAIL report ) > >sub Apache::ASP::ParseHelper { > ... > while($$data =~ /(.*?)\<\%(.*?)\%\>/gso) { > >putting back in the old code made things work again, >so I'll have to resurrect this in 2.15: > > while($$data =~ s/^(.*?)\<\%(.*?)\%\>//gso) { I quote from perl-5.6.1.announce: :Known Issues :---------------------------------------------------------------------------- : :Issues that arise with Perl releases are fixed as they become known to us. :Individual patches to problems in Perl 5.6.1 (referenced by patch numbers :below) are usually available here: : : http://public.ActiveState.com/gsar/APC/5.6.2/diffs/ : :Patches that affect the same files should be applied in order, using the :GNU patch utility. For example: : : cd perl-5.6.1 : gzip -cd 1234.gz | patch -lNp1 : :Please be aware that, in general, these patches are NOT as thoroughly :tested as the release itself. Use at your own risk. : :The following issues have come to light since Perl 5.6.1 was released: : : + A somewhat obscure case of overeager optimization in the regular : expression engine has been reported. The problem may affect you : if you are matching unanchored patterns with the C</sg> modifiers : and without also using the C<\G> escape. Patch 9675 cures this : problem by reverting the optimization. So I think you may want to try: http://public.ActiveState.com/gsar/APC/5.6.2/diffs/9675.gz HTH, Sarathy gsar [at] ActiveState --cebakomogomoiadmjlcj-- ReSent-Date: Fri, 29 Jun 2001 14:50:30 -0700 (PDT) ReSent-From: Ask Bjoern Hansen <ask [at] valueclick> ReSent-To: <asp [at] perl> ReSent-Subject: Re: Apache::ASP v2.11 Parser optimization broke under perl 5.6.1 ReSent-Message-ID: <Pine.LNX.4.33.0106291450300.18561 [at] impatience> On Wed, 11 Jul 2001 12:44:01 PDT, Joshua Chamas wrote: >Hey perl porters & Apache::ASP list: > >This parser optimization, released in Apache::ASP 2.11, >broke Apache::ASP under perl 5.6.1 ( + 5.7.1 I'm guessing >from a cpan-testers FAIL report ) > >sub Apache::ASP::ParseHelper { > ... > while($$data =~ /(.*?)\<\%(.*?)\%\>/gso) { > >putting back in the old code made things work again, >so I'll have to resurrect this in 2.15: > > while($$data =~ s/^(.*?)\<\%(.*?)\%\>//gso) { I quote from perl-5.6.1.announce: :Known Issues :---------------------------------------------------------------------------- : :Issues that arise with Perl releases are fixed as they become known to us. :Individual patches to problems in Perl 5.6.1 (referenced by patch numbers :below) are usually available here: : : http://public.ActiveState.com/gsar/APC/5.6.2/diffs/ : :Patches that affect the same files should be applied in order, using the :GNU patch utility. For example: : : cd perl-5.6.1 : gzip -cd 1234.gz | patch -lNp1 : :Please be aware that, in general, these patches are NOT as thoroughly :tested as the release itself. Use at your own risk. : :The following issues have come to light since Perl 5.6.1 was released: : : + A somewhat obscure case of overeager optimization in the regular : expression engine has been reported. The problem may affect you : if you are matching unanchored patterns with the C</sg> modifiers : and without also using the C<\G> escape. Patch 9675 cures this : problem by reverting the optimization. So I think you may want to try: http://public.ActiveState.com/gsar/APC/5.6.2/diffs/9675.gz HTH, Sarathy gsar [at] ActiveState --cebakomogomoiadmjlcj-- --------------------------------------------------------------------- To unsubscribe, e-mail: asp-unsubscribe [at] perl For additional commands, e-mail: asp-help [at] perl
|