peachpie icon indicating copy to clipboard operation
peachpie copied to clipboard

Mono.Posix.NETStandard broke WebAssemblies

Open kripper opened this issue 4 years ago • 2 comments

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)
...

kripper avatar Oct 25 '21 23:10 kripper

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.

kripper avatar Oct 26 '21 02:10 kripper

nothing changed with mono.posix reference (possible dup https://github.com/peachpiecompiler/peachpie/issues/919 ?)

what does it do with file_exists ?

jakubmisek avatar Oct 26 '21 12:10 jakubmisek