Development

Changeset 7763

You must first sign up to be able to contribute.

Changeset 7763

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

fixed web debug toolbar segfaults PHP when debugging using xdebug (closes #2438)

Files:

Legend:

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

    r6869 r7763  
    5050    { 
    5151      $this->xdebugLogging = $options['xdebug_logging']; 
     52    } 
     53 
     54    // disable xdebug when an HTTP debug session exists (crashes Apache, see #2438) 
     55    if (isset($_GET['XDEBUG_SESSION_START']) || isset($_COOKIE['XDEBUG_SESSION'])) 
     56    { 
     57      $this->xdebugLogging = false; 
    5258    } 
    5359