Title: Compatibility with PHP 5.6.3?
Last modified: August 22, 2016

---

# Compatibility with PHP 5.6.3?

 *  Resolved [Will Earnhardt](https://wordpress.org/support/users/earnjam/)
 * (@earnjam)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/compatibility-with-php-563/)
 * 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://wordpress.org/plugins/query-monitor/](https://wordpress.org/plugins/query-monitor/)

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

 *  Plugin Author [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [11 years, 6 months ago](https://wordpress.org/support/topic/compatibility-with-php-563/#post-5513428)
 * 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](https://wordpress.org/support/users/earnjam/)
 * (@earnjam)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/compatibility-with-php-563/#post-5513445)
 * 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](https://wordpress.org/support/users/earnjam/)
 * (@earnjam)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/compatibility-with-php-563/#post-5513494)
 * 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](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](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [11 years, 6 months ago](https://wordpress.org/support/topic/compatibility-with-php-563/#post-5513503)
 * 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.

 * ![](https://ps.w.org/query-monitor/assets/icon.svg?rev=2994095)
 * [Query Monitor](https://wordpress.org/plugins/query-monitor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/query-monitor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/query-monitor/)
 * [Active Topics](https://wordpress.org/support/plugin/query-monitor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/query-monitor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/query-monitor/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/compatibility-with-php-563/#post-5513503)
 * Status: resolved