RE: [PHP-DEV] PHP Unicode extension in PHP6

From: Date: Tue, 22 May 2007 18:36:10 +0000
Subject: RE: [PHP-DEV] PHP Unicode extension in PHP6
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-29667@lists.php.net to get a copy of this message
>> > >> > 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. > > derick@kossu:~$ 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

« previous php.internals (#29667) next »