peachpie
peachpie copied to clipboard
PeachPie - the PHP compiler and runtime for .NET and .NET Core
Since PHP's `switch` is syntactic sugar over a set of `if`s, we do implement it the same way. (With the exception if all the cases are integers). Roslyn already provides...
example code: ```php class X { function __tostring() { return "\x11\x22\x33"; } //
Sample C# code: ```csharp namespace ClassLibrary { public struct MyStruct { public int Value; public MyStruct(int value) { Value = value; } } } ``` Sample PHP code: ```php function...
I get the following error: `Unhandled exception. Error: Class 'SNMP' not found in` (folder name omitted) php-snmp was installed using apt on ubuntu, seems to be working on native php....
**Configuration:** - [x] `` allows to set 8.0, latest refers to 8.0, default 7.4 **Language features:** - [x] Union types - [x] syntax, mixed - [x] type analysis, "null", nullability...
This issue summarizes all the problems which cause WordPress PHPUnit tests to end prematurely (uncaught .NET exception, stack overflow etc.) or pollute output with extra text. Currently, they are solved...
Similarly to `PhpString` - `PhpArray` is just a thin wrapper over the lazily copied `OrderedDictionary`. Every value pass causes an unnecessary new allocation of `PhpArray`. Changing PhpArray to a struct...
include("test.php") is not processing the PHP tags when "test.php" was not compiled into an assembly. The PHP source code is dumped as is. We are testing latest peachpie version. Use...
Write tests as PHPUnit Test Cases; using the following component: https://github.com/peachpiecompiler/phpunit-testadapter - [ ] new tests directory for PHPUnit tests cases - [ ] adopt the test adapter - [...
We have a bunch of features without being tested properly. Updated continuously. - [ ] `include __DIR__ . "/subdir/file.php";` to get resolved in compile time. Add counter to `Context.Include(string)` to...