jakubmisek on master
updated mysql connector, parser (compare)
<Target Name="FixSignature" DependsOnTargets="Build" AfterTargets="Build"> <Exec Command="php "$(ProjectDir)fixer.php" $(ProjectDir)peachpie.snk" WorkingDirectory="$(OutDir)" /> </Target> <ItemGroup> <None Remove="fixer.php" /> </ItemGroup>
\System\Type::GetType()is the best you can have. In order to make it in compile-time, we would have to introduce our own
typeof()function that would be well-known to the compiler, or we can have an extension to PHP's
typeofas the attribute parameter value https://docs.peachpie.io/net/attributes/
@calvinbaart we've changed the
getLastError() implementation so it never returns
FALSE. Note in PHP it does return
FALSE sometimes but it is not documented and I think developers (and frameworks) do not expect it anyway.
The only scenario where it can be used would be if someone would like to check if any of date-parsing function were used already by checking
eval()think is not ready for it yet. Note compiler needs the whole context, all the classes and dependencies. It cannot just compile a piece of it, or at least not efficiently.