Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/285.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure函数PHP系统无法找到指定的文件_Php_Function_Azure - Fatal编程技术网

Azure函数PHP系统无法找到指定的文件

Azure函数PHP系统无法找到指定的文件,php,function,azure,Php,Function,Azure,突然,我所有的PHP函数都停止了在一个应用程序服务消费计划中使用Azure函数的工作。几天后,我的其他运行PHP的Azure函数应用程序也出现了同样的情况 完整错误消息: [Info] Function started (Id=01a3bb97-a5a3-49d9-8a13-ac7330fcb9d0) [Error] Exception while executing function: Functions.NAME. System: The system cannot find the fil

突然,我所有的PHP函数都停止了在一个应用程序服务消费计划中使用Azure函数的工作。几天后,我的其他运行PHP的Azure函数应用程序也出现了同样的情况

完整错误消息:

[Info] Function started (Id=01a3bb97-a5a3-49d9-8a13-ac7330fcb9d0)
[Error] Exception while executing function: Functions.NAME. System: The system cannot find the file specified.
[Error] Function completed (Failure, Id=01a3bb97-a5a3-49d9-8a13-ac7330fcb9d0, Duration=120ms)

像Node这样的其他语言似乎仍在工作

在调查这个问题时,我偶然发现了文件夹
D:\Program Files\FixPHP72x64
,最后修改的日期等于我的函数开始失败的时间范围。它包含一个修改PHP运行时的脚本,以及一个指示脚本已运行的输出文件

我联系了Microsoft Azure支持部门,他们承认问题是由他们所做的更改造成的。幸运的是,由于PHP支持仍在预览中,他们确实考虑了回归问题,他们将致力于解决方案。

在此之前,他们提供了一个临时解决方案:

请按照此处的说明进行操作 复制 而不是python到
site\tools

此解决方法会将php.ini配置重置为默认值,因此您可能需要更改php.ini中的一些内容:

cd D:\home\site\tools
cp php.ini-production php.ini

然后对php.ini文件进行所需的更改。

Life saver。。。尽管GitHub页面上的说明还有很多需要改进的地方。