Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_3) / zend_language_scanner.c zend_language_scanner.l

[email protected] (Johannes Schlüter)
Newsgroups php.zend-engine.cvs
Message-ID <1230849645.5777.4.camel@goldfinger>
On Thu, 2009-01-01 at 15:46 -0500, Ilia Alshanetsky wrote:
> Nuno,
> 
> The original code actually can be found inside php_cli.c and there it  
> only checked the 1st line for '#'. if you create a file such as:
> #1
> #2
> <?php $a = array();

The issue here is that the old code only looked at the main script, now
included files ar affected, too.

So either we check in the scanner whether this is the main script or
move the check back to the C[GL]I SAPIs.

johannes
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.