Open GoogleCodeExporter opened 9 years ago
Hi,
instead of playing tricks with regexps and depending on "subtle" behaviour ('.'
matching a byte), you could use something like
http://www.php.net/manual/en/function.strlen.php#54906 (but using 'ISO-8859-1'
as the character set, instead of 'latin1', which is the canonical character set
name).
Saludos.
Iñaki.
Original comment by iaren...@mondragon.edu
on 2 May 2011 at 9:47
Here's a proposed patch for a svn checkout of trunk (current as of today).
Saludos.
Iñaki.
Original comment by iaren...@mondragon.edu
on 2 May 2011 at 5:19
Attachments:
I missed that argument to the mb_ family of functions. That's a much better
solution.
Original comment by craiglewis782@gmail.com
on 7 Jun 2011 at 9:14
This had me going around for a week when trying to use SimpleSAML in a server with mbstring.func_overload 6
.
Is there any intention of fixing it?
@guiwoda Will take a look at this once I finish re-organizing the code and versions
You can solve this by detecting of mb_str
exists and use the 8bit encoding instead.
See https://github.com/defuse/php-encryption/blob/master/src/Crypto.php#L663
@sstok Thanks. This is one of the issues I'm currently working on so appreciate the reference to that
Original issue reported on code.google.com by
craiglewis782@gmail.com
on 20 Aug 2009 at 12:21Attachments: