Skip to content

Commit d21d2d9

Browse files
Merge pull request #125 from runcommand/64-php7
Include mention that profiling intermediate hooks is broken in PHP7
2 parents 6aeaf75 + dff51fe commit d21d2d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

inc/class-profiler.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ public function run() {
122122
*/
123123
public function wp_tick_profile_begin( $value = null ) {
124124

125+
if ( version_compare( PHP_VERSION, '7.0.0' ) >= 0 ) {
126+
WP_CLI::error( "Profiling intermediate hooks is broken in PHP 7, see https://bugs.php.net/bug.php?id=72966" );
127+
}
128+
125129
// Disable opcode optimizers. These "optimize" calls out of the stack
126130
// and hide calls from the tick handler and backtraces.
127131
// Copied from P3 Profiler

0 commit comments

Comments
 (0)