PeachPie - the PHP compiler and runtime for .NET and .NET Core
Maintenance release with fixes and updated parser.
maintenance release; avoids a few falsy notices in array
functions and is_readable()
function
This release has updated PHP syntax parser and PHAR parser. This fixes a few issues as well as it allows parsing a complete range of PHP 5,7 and PHP 8 sources. (It doesn't mean it compiles all the PHP 8.2 quirks and features tho - see https://github.com/peachpiecompiler/peachpie/issues/765 and https://github.com/peachpiecompiler/peachpie/issues/959)
PHPDoc
Updated Doc Comments parser, and dropped support for type hinting from PHPDoc; this feature was useful when there was no type-hinting in PHP itself. Currently, function parameters and properties can be type-hinted using PHP syntax.
Fixes:
match
with multiple conditions (https://github.com/peachpiecompiler/peachpie/issues/1098)This is the netstandard2.1
release with the same features as v1.1.3
maintenance release,
Attribute
classfile_exists()
mysqli_report()
-1
always)Fixes SDK to be used from Visual Studio.
Targeting net5.0
and newer now, so we can make use of the latest API. When running on older .NET runtimes, please use the 1.0.x
versions.
Sample project file .msbuildproj
:
<Project Sdk="Peachpie.NET.Sdk/1.1.0">
<PropertyGroup>
<OutputType>library</OutputType>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Compile Include="**/*.php" />
</ItemGroup>
</Project>
PhpValue
can be cast to decimal
(in C#)