Development

Changeset 7762

You must first sign up to be able to contribute.

Changeset 7762

Show
Ignore:
Timestamp:
03/07/08 14:51:16 (7 months ago)
Author:
fabien
Message:

fixed web debug toolbar segfaults PHP when debugging using xdebug

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/lib/log/sfLogger/sfWebDebugLogger.class.php

    r3329 r7762  
    5252    // if we have xdebug, add some stack information 
    5353    $debug_stack = array(); 
    54     if (function_exists('xdebug_get_function_stack')) 
     54 
     55    // disable xdebug when an HTTP debug session exists (crashes Apache, see #2438) 
     56    if (function_exists('xdebug_get_function_stack') && !isset($_GET['XDEBUG_SESSION_START']) && !isset($_COOKIE['XDEBUG_SESSION'])) 
    5557    { 
    5658      foreach (xdebug_get_function_stack() as $i => $stack)