Re: [PHP-DEV] PHP6 artifact - binary strings

2015-02-08 Thread Andrea Faulds
Hi, On 8 Feb 2015, at 21:48, Marc Bennewitz dev@mabe.berlin wrote: Wrapping all in objects isn't an option. This would only add unnecessary overhead and only move the issue to a different place. I don’t see why not. Objects are generally exempt from type juggling, except for conversion to

[PHP-DEV] PHP6 artifact - binary strings

2015-02-08 Thread Marc Bennewitz
Hi all, Since PHP-5.2.1 we have an artifact of PHP-6 in the engine means we can define binary strings but such definitions haven't any effect. So what we can define is the following: $str = str; $bin = bb\0i\0n; $str2bin = (binary)$str; One of the biggest issue is that currently ALL strings

Re: [PHP-DEV] PHP6 artifact - binary strings

2015-02-08 Thread Andrea Faulds
Hi, On 8 Feb 2015, at 20:10, Marc Bennewitz dev@mabe.berlin wrote: Since PHP-5.2.1 we have an artifact of PHP-6 in the engine means we can define binary strings but such definitions haven't any effect. Yes. That’s because PHP 6 was going to have Unicode strings by default, alongside