Changeset 61 for php/trunk/rdfa.php


Ignore:
Timestamp:
Jul 19, 2011, 5:18:11 PM (14 years ago)
Author:
cla
Message:

rdfint

  • introduced symbol FDEBUG_SESSION_NAME to explicitly enbable fDebug output
File:
1 edited

Legend:

Unmodified
Added
Removed
  • php/trunk/rdfa.php

    r27 r61  
    5151
    5252// --- configure fDebug
    53 $fdebug = \fDebug::getInstance();
    54 If (isset( $_SERVER[ "SERVER_NAME"]))
    55   $fdebug->setSession( $_SERVER[ "SERVER_NAME"]);
    56 else {
    57   $unittest_name = str_replace( '_', ' ', basename( getcwd()));
    58   if (defined( 'SAMPLE_NAME'))
    59     $fdebug->setSession( 'localhost', SAMPLE_NAME . ' ' . $unittest_name);
     53if (defined( 'FDEBUG_SESSION_NAME') != '') {
     54  $fdebug = \fDebug::getInstance();
     55  If (isset( $_SERVER[ "SERVER_NAME"]))
     56    $fdebug->setSession( $_SERVER[ "SERVER_NAME"]);
     57  else {
     58    $unittest_name = str_replace( '_', ' ', basename( getcwd()));
     59    if (defined( 'FDEBUG_SESSION_NAME'))
     60      $fdebug->setSession( 'localhost', SAMPLE_NAME . ' ' . $unittest_name);
     61  }
     62  $fdebug->openSocket( '127.0.0.1');
     63  $fdebug->sendSource( '<?xml version="1.0" ?><emptysource/>');
    6064}
    61 $fdebug->openSocket( '127.0.0.1');
    62 $fdebug->sendSource( '<?xml version="1.0" ?><emptysource/>');
    6365
    6466?>
Note: See TracChangeset for help on using the changeset viewer.