I've recently installed PHP 5.6.37 on a Windows Server 2012 R2 machine.
PHP folder has been copied from a Windows 10 machine where it works fine.
Because it isn't a proper installation, I've manually added C:\php to the PATH environment variable.
When I try to run some code which uses COM classes, it throws:
Fatal error: Class 'COM' not found in XXXX on line 42
Looking for a solution and I found this answers:
But none of those worked for me, because both (extensions and php.ini file) were fine, since it worked on the Windows 10 machine before.
Where the issue could be then?