Re: config.w32 quirk
| From: | Frank M. Kromann | Date: | Mon, 14 Aug 2006 20:22:00 +0000 |
| Subject: | Re: config.w32 quirk | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-25354@lists.php.net to get a copy of this message | ||
For some reason it needs to be
re = new RegExp("^\\s*(ARG_(ENABLE|WITH)\([^;]+\);)", "gm");
But that will work.
- Frank
> Frank M. Kromann wrote:
> > That has to do with the way the config.w32 files are processed.
> >
> > changing one line in win32\build\buildconf.js from
> >
> > re = new RegExp("(ARG_(ENABLE|WITH)\([^;]+\);)", "gm");
> >
> > to
> >
> > re = new RegExp("^(ARG_(ENABLE|WITH)\([^;]+\);)", "gm");
> >
> > will prevent this from happening. This change will require the ARG_
to
> > start a the begining of the line.
>
> No need for such a requirement. I don't know whether the JS regex is
> PCRE or not, but I believe something like this will solve that issue...
>
> re = new RegExp("^\s*(ARG_(ENABLE|WITH)\([^;]+\);)", "gm");
>
> -Stut
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>