peachpiecompiler / peachpie

PeachPie - the PHP compiler and runtime for .NET and .NET Core
https://www.peachpie.io
Apache License 2.0
2.31k stars 202 forks source link

Mono.Posix.NETStandard broke WebAssemblies #983

Open kripper opened 2 years ago

kripper commented 2 years ago

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 commented 2 years ago

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.

jakubmisek commented 2 years ago

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

what does it do with file_exists ?