>> >
>> > Recent versions of PHP5, has a binary string introducer.
>> >
>> > echo strlen(b"\xC4\x85");
>>
>> I have already said to Stefan. It is not an option. I need backwards
>> compatibility. If older PHP versions fail with E_PARSE errors, I can't
>> use it.
>
> [EMAIL PROTECTED]:~$ php -r 'echo strlen(b"\xC4\x85"), "\n";'
> 2
>
> works fine here... (with php 5.2)

http://www.php.net/ChangeLog-5.php#5.2.1

- Added forward support for 'b' prefix in front of string literals. (Andrei)


PHP 5.2.0
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in
test.php on line 5

PHP 4.1.2
Parse error: parse error, expecting `','' or `';'' in test.php on line 2

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to