Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55455 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59696 invoked from network); 15 Sep 2011 15:13:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Sep 2011 15:13:26 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@googlemail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.215.170 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@googlemail.com X-Host-Fingerprint: 209.85.215.170 mail-ey0-f170.google.com Received: from [209.85.215.170] ([209.85.215.170:55873] helo=mail-ey0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B2/9A-29375-516127E4 for ; Thu, 15 Sep 2011 11:13:26 -0400 Received: by eyh6 with SMTP id 6so302156eyh.29 for ; Thu, 15 Sep 2011 08:13:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=7eCORDxx8YhFV6ihSOp+5bGG9YjY465IanbQLoRWWgs=; b=wDQ7PXXZIfj55poE9XF3XGWgo6jMY00jPm8G38kuNv1P3Zca7jkccpHQ9yd/ZkgQJG 02GeeyBXmGBV0ye//8j+8tulMhK4KdQAE6bNznimRyc53CgbggQ6cFXsGdTjEPpZ0vAN 6MUzH9hav3J0H2F7eo4m47TstS+B3RlVvN6I4= MIME-Version: 1.0 Received: by 10.14.19.208 with SMTP id n56mr443598een.14.1316099602275; Thu, 15 Sep 2011 08:13:22 -0700 (PDT) Received: by 10.14.99.205 with HTTP; Thu, 15 Sep 2011 08:13:22 -0700 (PDT) In-Reply-To: References: <4E6FB55E.4060906@oracle.com> Date: Thu, 15 Sep 2011 17:13:22 +0200 Message-ID: To: Hannes Magnusson Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Revert Tokenizer behavior for 5.4 From: nikita.ppv@googlemail.com (Nikita Popov) On Thu, Sep 15, 2011 at 5:05 PM, Hannes Magnusson wrote: > Wait wait wait. Thats the point here? > __COMPILER_HALT_OFFSET__ already tells you where the data starts. __COMPILER_HALT_OFFSET__ tells you the offset if you are running the file. It is only available in the file that does the actual __halt_compiler(); statement. When using the Tokenizer (this is what this is about; this is *not* about PHP's own lexing/parsing behavior) you don't have that constant available. Though, again, I don't think the second patch is strictly necessary. I'd be happy without, if it creates too many problems / is not intuitive. Nikita