We have an Azure App Service that makes use of the Redis PHP extension. Both the App Service and extension are PHP 5.6 / 32-bit. We are loading the PHP extension from a
extension = "d:\home\site\wwwroot\ext\php_redis.dll"
[06-Nov-2016 17:25:42 America/Los_Angeles] PHP Warning: PHP Startup: Unable to load dynamic library 'd:\home\site\wwwroot\ext\php_redis.dll' - %1 is not a valid Win32 application.
in Unknown on line 0
The error message which can be caused in some unexpected condition that the file path is formed properly, for example, when there is file storage failover, auto-healing, etc.
We had tested installing
php_redis.dll from application settings instead of
PHP_INI_SCAN_DIR, this way
php.ini will be modified to include the extension path. This change can mitigate the issue.