Re: Re: Long awaited line directive

From: Date: Mon, 17 Jul 2006 21:33:48 +0000
Subject: Re: Re: Long awaited line directive
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-24442@lists.php.net to get a copy of this message
Hello Sara, Monday, July 17, 2006, 7:09:30 AM, you wrote: >>> 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. >>> >> Why not leave it up to the user land code generator to include the >> directive in the debug version or generate without it in the production >> version? >> > Indeed. This suggestion was cross-wired with another thought when an > enable/disable switch made more sense. For the sake of code-generators it > does make more sense to simply not generate the line during pre-compile. That is actually the preferred solution. An additional opcode does not have any impact on the runtime. So having the ocode linger around doesn't do anything. Which is the same for regenerating the code without #line directives. On the contray adding a new ini setting affects every request so i guess the answer is quite obvious. Best regards, Marcus

« previous php.internals (#24442) next »