Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15396 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94761 invoked by uid 1010); 12 Mar 2005 11:58:59 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 94728 invoked from network); 12 Mar 2005 11:58:59 -0000 Received: from unknown (HELO cschneid.com) (127.0.0.1) by localhost with SMTP; 12 Mar 2005 11:58:59 -0000 X-Host-Fingerprint: 195.226.6.9 darkcity.gna.ch Linux 2.4/2.6 Received: from ([195.226.6.9:38209] helo=darkcity.gna.ch) by pb1.pair.com (ecelerity HEAD r(5124)) with SMTP id 9A/18-31540-289D2324 for ; Sat, 12 Mar 2005 06:58:58 -0500 Received: from localhost (localhost [127.0.0.1]) by darkcity.gna.ch (Postfix) with ESMTP id 901BB18B574; Sat, 12 Mar 2005 12:58:55 +0100 (CET) Received: from unknown by localhost (amavisd-new, unix socket) id client-XX69fGuo; Sat, 12 Mar 2005 12:58:52 +0100 (CET) Received: by darkcity.gna.ch (Postfix, from userid 65534) id 9785018B573; Sat, 12 Mar 2005 12:58:52 +0100 (CET) Received: from [192.168.1.44] (80-219-133-78.dclient.hispeed.ch [80.219.133.78]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by darkcity.gna.ch (Postfix) with ESMTP id 9DDFF18B56D; Sat, 12 Mar 2005 12:58:49 +0100 (CET) Message-ID: <4232D97B.5020305@cschneid.com> Date: Sat, 12 Mar 2005 12:58:51 +0100 User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Moriyoshi Koizumi Cc: internals@lists.php.net References: <4231F330.6000705@prohost.org> <4e89b426050311134633b22b@mail.gmail.com> <4232163C.1000906@prohost.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on darkcity.gna.ch X-Spam-Level: * X-Spam-Status: No, score=1.9 required=5.0 tests=AWL,RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL autolearn=disabled version=3.0.2 X-Virus-Scanned: by amavisd-new at gna.ch Subject: Re: [PHP-DEV] HALT Patch From: cschneid@cschneid.com (Christian Schneider) Moriyoshi Koizumi wrote: > I modified your patch so it can capture the position where the > supposed data begins into the constant __HALT_PHP_PARSER__. Sounds like a good idea to me as all the manual work to guess the start of the data look a bit kludgy to me. > $fp = fopen(__FILE__, 'rb'); > fseek($fp, __HALT_PHP_PARSER__, SEEK_SET); > fpassthru($fp); > ?> > > abc > def Hmm.. I was wondering if we should go one step further and also provide a stream to the data. If the most common usage of this construct is going to be reading the data after __HALT_PHP_PARSER__ then we should optimize for that case. Something like ... - Chris