Re: [RFC] Replace the flex-based scanner with an re2c [1] based lexer
| From: | Johannes Schlüter | Date: | Mon, 03 Mar 2008 10:21:25 +0000 |
| Subject: | Re: [RFC] Replace the flex-based scanner with an re2c [1] based lexer | ||
| References: | 1 2 | Groups: | php.internals php.internals |
| Request: | Send a blank email to internals+get-35904@lists.php.net to get a copy of this message | ||
Hi Derick,
On Mon, 2008-03-03 at 09:28 +0100, Derick Rethans wrote:
> On Sun, 2 Mar 2008, Marcus Boerger wrote:
>
> > However, we had to drop multibyte support as well as the encoding
> > declare.
>
> Just wondering, why did you have to drop the "declare(encoding=...)" ?
> It's just ignored in PHP 5.x - and it is useful to have for migrating
> php 5.3 apps to 6. So can you atleast make the new parser just ignore
> this statement?
It is not ignored in PHP 5 as Marcus and I found out while reading the
code :-)
If you compile with --enable-zend-multibyte you can change the encoding
using declare even multiple times per file using declare it seems.
johannes