Christopher Pereira

Results 71 comments of Christopher Pereira

BTW, the test case can be easily placed inside `PHPScripts/index.php` following the instructions here: https://www.peachpie.io/2021/08/run-debug-php-browser.html Then execute `dotnet run` inside `BlazorApp\Client`.

Hi @jakubmisek, do you know if there is some configuration or workaround to support working with binary strings on PeachPie WebAssemblies?

Right. I tested on peachpie (latest version) and both asserts fail too for a console app. I tried adding the `(binary)` cast, using `mb_chr(220, 'ASCII')`, but everything fails. Is there...

It seems like chr() only returns binary strings when bytevalue < 240. ``` public static PhpString chr(int bytevalue) { if (bytevalue < 0xf0) { return ((char)bytevalue).ToString(); } else { return...

Can we add an option to make `chr()` compatbile with Zend's PHP? I believe most of the time we see `chr()` in the code is because the programmer wants to...

`MutableStringBlob.ToString()` (in PhpValue::TryToIntStringKey) is corrupting the latin encoded strings, because it is doing `public override string ToString() => ToString(Encoding.UTF8);`, and chr(225), chr(226), etc. are all encoded as the UTF-8 replacement...

How does using Context.StringEncoding make it possible to use any kind of binary strings when certain bytes have no representation in certain encodings? For example, we could have a PHP...

Ok. 1) Does it make sense to encode the binaries to string using BlockCopy and set a flag to IntStringKey to mark it as a binary key? 2) In general,...

Thanks. Can this feature be added in Peachpie using the same strategy used in Phalanger. BTW, we updated Phalanger to the last commit before the "invalid dynamic wrappers format" bug...