ufront / ufront-mvc

The core MVC framework that powers ufront
MIT License
17 stars 15 forks source link

Ufront not working with Haxe 3.4 #64

Closed ConfidantCommunications closed 7 years ago

ConfidantCommunications commented 7 years ago

It seems the PHP output differences with the new Haxe version 3.4 are significant enough that Ufront no longer runs after compiling. In the older PHP I am getting: PHP Fatal error: Class 'haxe__Unserializer_DefaultResolver' not found

I also tried the PHP7 target and got different errors.

ConfidantCommunications commented 7 years ago

Update: Manually editing the file in /lib/haxe/Unserializer.class.php seems to resolve this. require '_Unserializer/DefaultResolver.class.php';

ConfidantCommunications commented 7 years ago

I solved this by putting these lines in my Server.hx class:

#if php  
untyped php("require 'haxe/_Unserializer/DefaultResolver.class.php'; ");  
#end