[dokuwiki] Re: darcs patch: parenthesis_escaper_fix
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Thu, 27 Dec 2007 10:38:44 +0000
On Fri, Dec 21, 2007 at 04:08:28PM +0100, Andreas Gohr wrote:
> On Wed, 19 Dec 2007 10:52:41 +0000
> stephane.chazelas@xxxxxxxxxxx wrote:
>
> > Wed Dec 19 10:38:58 GMT 2007 stephane.chazelas@xxxxxxxxxxx
> > * parenthesis_escaper_fix
>
> This patch throws a syntax error in PHP4:
>
> Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$'
> in /var/www/dokuwiki/inc/parser/lexer.php on line 139
>
> Could you please rewrite the patch using a for loop with the length of
> the array instead of using a reference?
[...]
Hi Andi,
I was wondering why that convoluted style of loop was being
used, I wasn't aware of that limitation of older releases of PHP
as I'm a very occasional PHP programmer, sorry about that.
Please find the new patch attached (gzip compressed).
Kind regards,
Stephane
- References:
- [dokuwiki] darcs patch: parenthesis_escaper_fix
- From: stephane . chazelas
- [dokuwiki] Re: darcs patch: parenthesis_escaper_fix
- From: Andreas Gohr
Other related posts:
- » [dokuwiki] Re: darcs patch: parenthesis_escaper_fix
- » [dokuwiki] Re: darcs patch: parenthesis_escaper_fix
- » [dokuwiki] darcs patch: parenthesis_escaper_fix
- » [dokuwiki] Re: darcs patch: parenthesis_escaper_fix
- » [dokuwiki] Re: darcs patch: parenthesis_escaper_fix
- » [dokuwiki] Re: darcs patch: parenthesis_escaper_fix
- » [dokuwiki] Re: darcs patch: parenthesis_escaper_fix
- » [dokuwiki] Re: darcs patch: parenthesis_escaper_fix
- [dokuwiki] darcs patch: parenthesis_escaper_fix
- From: stephane . chazelas
- [dokuwiki] Re: darcs patch: parenthesis_escaper_fix
- From: Andreas Gohr