mirror of
https://hk.gh-proxy.com/https://github.com/wp-cli/profile-command.git
synced 2025-08-21 06:39:02 +08:00
Include mention that profiling intermediate hooks is broken in PHP7
This commit is contained in:
parent
b18a3eabbb
commit
798944b341
1 changed files with 4 additions and 0 deletions
|
@ -122,6 +122,10 @@ class Profiler {
|
|||
*/
|
||||
public function wp_tick_profile_begin( $value = null ) {
|
||||
|
||||
if ( version_compare( PHP_VERSION, '7.0.0' ) >= 0 ) {
|
||||
WP_CLI::error( "Profiling intermediate hooks is broken in PHP 7, see https://bugs.php.net/bug.php?id=72966" );
|
||||
}
|
||||
|
||||
// Disable opcode optimizers. These "optimize" calls out of the stack
|
||||
// and hide calls from the tick handler and backtraces.
|
||||
// Copied from P3 Profiler
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue