• I just upgraded a dev server from PHP 5.5.12 to 5.6.3 and now I’m getting segmentation faults on every page request whenever Query Monitor is active.

    Additional details: I’m running WP 4.0.1 on a subdirectory multisite install with Apache 2.4.10.

    I haven’t dug into the code or debugging too far yet, but is there something in the plugin that specifically would have broken in PHP 5.6?

    Has anyone else seen this issue?

    https://ww.wp.xz.cn/plugins/query-monitor/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    I’ve been running QM with PHP 5.6.1 for quite a while now and not seen any issues.

    Can you get hold of your server/PHP logs and let me know details of the segfaults?

    Thread Starter Will Earnhardt

    (@earnjam)

    Thanks John. I’ll look into it a little more and report back and/or close this thread.

    I thought it was probably a systems issue, but I mainly wanted to see if there were any known issues or potential culprits before I got too deep into the logs and debugging.

    Thread Starter Will Earnhardt

    (@earnjam)

    Ok, found the culprit. Looks like the call to exec( 'whoami' ) in environment.php was causing it. I have exec disabled. Once I commented out that portion it all worked fine.

    Based on this, it looks like it might be a bug in PHP 5.6.2 and 5.6.3, which would explain why you haven’t seen it in 5.6.1: https://bugs.php.net/bug.php?id=68413

    It appears to be patched in 5.6.4, so I guess I’ll just comment this portion out for now and test again once I update PHP again.

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Oh well spotted, William! I’ll see if there’s anything I can do in QM to mitigate this problem, but it might end up being a bit messy. I’ll keep you posted.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Compatibility with PHP 5.6.3?’ is closed to new replies.