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
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php