Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25354 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75428 invoked by uid 1010); 14 Aug 2006 20:42:13 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 75408 invoked from network); 14 Aug 2006 20:42:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Aug 2006 20:42:13 -0000 X-PHP-List-Original-Sender: frank@kromann.info X-Host-Fingerprint: 64.186.239.125 c-064-186-239-125.oc1.redwire.net Linux 2.5 (sometimes 2.4) (4) Received: from ([64.186.239.125:52762] helo=mail.kromann.info) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 0E/EC-19138-47BD0E44 for ; Mon, 14 Aug 2006 16:22:12 -0400 Received: by mail.kromann.info (Postfix, from userid 510) id 94ECC4040CA; Mon, 14 Aug 2006 13:21:24 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on mail.kromann.info X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.1 Received: from warp (www.kromann.info [64.186.239.115]) by mail.kromann.info (Postfix) with SMTP id 0ED794040C6; Mon, 14 Aug 2006 13:21:23 -0700 (PDT) To: Stut Cc: runner60 , X-Mailer: Swwwing 2000 Message-ID: <11555869200800000@9866357972520000.9866341568840000> MIME-Version: 1.0 Reply-To: "Frank M. Kromann" Date: Mon, 14 Aug 2006 13:22:00 -0700 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] config.w32 quirk From: frank@kromann.info ("Frank M. Kromann") 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 >