Development

#3854 ([patch] lime can throw notice during a test failure)

You must first sign up to be able to contribute.

Ticket #3854 (closed defect: fixed)

Opened 4 months ago

Last modified 4 months ago

[patch] lime can throw notice during a test failure

Reported by: Carl.Vondrick Assigned to: fabien
Priority: minor Milestone:
Component: lime Version:
Keywords: Cc:
Qualification: Ready for core team

Description

lime will throw a notice if $_SERVER['PHP_SELF'] is not set.

This patch fixes:

  • lime.php

    old new  
    7474    if (!$result) 
    7575    { 
    7676      $traces = debug_backtrace(); 
    77       if ($_SERVER['PHP_SELF']
     77      if (!empty($_SERVER['PHP_SELF'])
    7878      { 
    7979        $i = strstr($traces[0]['file'], $_SERVER['PHP_SELF']) ? 0 : (isset($traces[1]['file']) ? 1 : 0); 
    8080      } 

I do not have permission to commit.

Change History

06/30/08 04:46:31 changed by dwhittle

  • status changed from new to closed.
  • resolution set to fixed.

(In [10005]) lime: fixed potential notice during a test failure (closes #3854 - thanks carl)