I'm getting this error message when I try to run a CMS (MyPortal 2) on my Xampp server 1.7.1:
Incompatible file format: The encoded file has format major ID 65540, whereas the Optimizer expects 2 in C:\xampp\htdocs\mp2.32-5.3\index.php on line 0
I assume that the source project is encoded with the Zend Guard. Opening the file with Notepad++ shows the first line:
Zend 2004072203 65540 24625 95846
I know I am using the correct php, because on the site it says, that the requirement is php 5.2.1 OR NEWER. Xampp 1.7.1 has php 5.2.9 and zend optimizer 3.3.3 shipped with it, as you can see on this screenshot, that I took from phpinfo.
Also I made sure that the zend_loader is set to 1 in the php.ini file. phpinfo on server screnshot and php.ini file screnshot
I have also tried different Xampp versions: 1.7.1; 1.7; 1.6.8; 1.6.6 -> all of these have Zend optimizer 3.3.3 or 3.3.0 but different php versions. The error is the same. I have also tried with Xampp version 1.5.0 that uses Zend optimizer version 2.2.x. I got the exact same result only, instead of Optimizer expects 2 in C:\xampp.... on line 0, it's a different number other than 0.
I also tried switching to Wamp. I got the EXACT same error.
However, I have not tried installing the Zend Guard Loader because both Xampp and Wamp use php with thread safe on, whereas the Zend Guard Loader requires php to be nts.
I am running Xampp on Windows 10.
Any help would be greatly appreciated.