DEVSERVER
DEVSERVER copied to clipboard
The procedure entry point could not be located in the dynamic link library
I am getting the above error when I try to use the latest php 8.1 x64 builds.
No problems at all with my prior saved php x64 builds.
Yes, I have VS 2019 x64.
Previously, I've gotten past these by tweaking my env PATH variable. Not this time.
More info... Yes, this is an environment PATH issue.
Apparently, Devserver only reloads environment variables once, upon initial load. You must fully exit Devserver (by choosing Exit from the taskbar menu) and restart it for Devserver to use the new PATH.
So... The workaround:
To change PHP versions in 8.x (e.g., when testing back & forth between 8.0.x and 8.1.x), you must:
- Close Devserver completely by choosing Exit from the taskbar menu
- Update your windows Path environment variable to include the NEW PHP version you are about to use
- Restart Devserver
- Choose the target php version when starting Apache
It wasn't this picky in prior 5.x & 7.x php versions. But it appears to be far more picky with php 8.x.
I will leave this open in case you think there is something that can be done here.
Maybe consider reloading windows environment variables whenever restarting apache/php?
OR... Better yet...
EasyPHP can dynamically update the PATH environment based on menu selections within Devserver.
This would solve #250 as well.
I believe a more dynamic approach to setting & retrieving the environment variables is needed to make the xdebug manager work under xdebug 3 as well. (#256 )