peachpie
peachpie copied to clipboard
Mono.Posix.NETStandard broke WebAssemblies
Latest PeachPie version throws:
System.IO.FileNotFoundException: Could not load file or assembly 'Mono.Posix.NETStandard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies.
File name: 'Mono.Posix.NETStandard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
at Pchp.Library.Streams.FileStreamWrapper.Stat(String root, String path, StreamStatOptions options, StreamContext context, PhpStream stream)
at Pchp.Library.PhpPath.file_exists(Context ctx, String path)
...
Sorry. I'm not really sure now if file_exists() worked before, because I reverted PeachPie to 1.0.6 and got the same error, so maybe in my previous tests the file_exists() line was commented out.
BTW, the file_exists() function I have in my test code is checking for a .php file before calling require (it's an autoloader), so I was thinking that maybe it was succesfully checking that the .php include was compiled and contained inside the assemblies.
nothing changed with mono.posix reference (possible dup https://github.com/peachpiecompiler/peachpie/issues/919 ?)
what does it do with file_exists ?