Skip to content

Commit

Permalink
Merge pull request #125 from runcommand/64-php7
Browse files Browse the repository at this point in the history
Include mention that profiling intermediate hooks is broken in PHP7
  • Loading branch information
danielbachhuber authored Nov 15, 2016
2 parents 6aeaf75 + dff51fe commit d21d2d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inc/class-profiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ public function run() {
*/
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
Expand Down

0 comments on commit d21d2d9

Please sign in to comment.