包含的PHP最大执行时间

包含的PHP最大执行时间,php,Php,只是想知道max\u execution\u time是如何工作的。 文档说明该选项设置: 允许脚本运行的最长时间(秒) 对于includes/requires,这是如何工作的 例如: file1.php <?php include("file2.php"); include("file3.php"); ?> file2.php <?php //some script that takes 6 minutes ?> file3.php <?php

只是想知道
max\u execution\u time
是如何工作的。 文档说明该选项设置:

允许脚本运行的最长时间(秒)

对于includes/requires,这是如何工作的

例如:

file1.php
<?php
  include("file2.php");
  include("file3.php");
?>

file2.php
<?php
  //some script that takes 6 minutes
?>

file3.php
<?php
  echo "hello"
?>
file1.php
file2.php
file3.php

如果file2.php需要6分钟(最大执行时间设置为5分钟),控制是否会传回file1.php并继续运行,或者整个文件是否退出?

执行中断并抛出错误。

最大执行时间是脚本可以执行的时间。不管你有多少个包裹。因此,如果在任何时候脚本将耗尽时间,所有内容都将停止,您将收到

致命错误:超过最大执行时间XX秒