Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24409 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35228 invoked by uid 1010); 16 Jul 2006 03:30:08 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 35213 invoked from network); 16 Jul 2006 03:30:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jul 2006 03:30:08 -0000 X-PHP-List-Original-Sender: pollita@php.net X-Host-Fingerprint: 65.111.164.201 danica.alphaweb.net Linux 2.4/2.6 Received: from ([65.111.164.201:44487] helo=danica.alphaweb.net) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 48/58-11992-EB2B9B44 for ; Sat, 15 Jul 2006 23:30:07 -0400 Received: from talos.alphaweb.net ([69.12.155.129] helo=vait) by danica.alphaweb.net with esmtpsa (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.50) id 1G1xJk-0005U8-9d; Sat, 15 Jul 2006 23:29:16 -0400 Message-ID: <002c01c6a888$19b133e0$8f051fac@vait> To: Cc: "Marcus Boerger" , , References: <347185750.20060715202622@marcus-boerger.de> Date: Sat, 15 Jul 2006 20:29:42 -0700 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Subject: Re: Long awaited line directive From: pollita@php.net ("Sara Golemon") > attached is a patch that brings the '#line' directive to php. > This is especially usefull for parser generators or any other > code shuffling/generator tools. Any opinions? If nothing speaks > against i'd like to commit this before heading towards OSCON > be end of next week. (oatch is against head of course). > Marcus- Thanks for pounding this out, I think this is an excellently timed counterpart to the four letter word and should serve code generators very well. One minor thought I'd offer up is an option INI setting to disable creation of the opcode. This allows the #line directives to be used in dev/debug environments without causing an impact for production servers during execution. It's not a major performance hit, but it's something. -Sara