自PHP7发布以来,现在不可能使用declare(ticks=1)分析整个脚本选择。在你的基本文件中,然后使用register_tick_function()监视每个滴答声,因为它不再遵循包含路径。根据在https://bugs.php.net/bug.php?id=71448提交的PHP错误这将永远不会在PHP7中再次可用。Duetoanimplementationbug,thedeclare(ticks=1)directiveleakedintodifferentcompilationunitspriortoPHP7.0.Thisisnothowdeclare()directive