peachpiecompiler / peachpie

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

sort method compare not supported - throw error using WP 6.4.3 - update.php #1135

Open benyaminl opened 3 months ago

benyaminl commented 3 months ago

I just curious, does the sort function for method comparer really isn't implemented? I got error by running the home page of Wordpress in peachpie.

image

jakubmisek commented 2 months ago

It has been implemented recently.

What version of wpdotnet/peachpie do you use? Let me check.

jakubmisek commented 2 months ago

The latest WordPress we've checked is 6.3.1.

The sort() with flags on the screenshot has been supported since PeachPie 1.1.9. (https://github.com/peachpiecompiler/peachpie/commit/f67b04ff9aae3cf20d211403043438b7bb38cdd1)

What is your setup?