Development

Changeset 4256

You must first sign up to be able to contribute.

Changeset 4256

Show
Ignore:
Timestamp:
06/19/07 08:04:57 (1 year ago)
Author:
fabien
Message:

added a check to PHP_PATH when looking for a php executable

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tools/lime/trunk/lib/lime.php

    r4246 r4256  
    420420  function __construct($output_instance, $php_cli = null) 
    421421  { 
     422    if (getenv('PHP_PATH')) 
     423    { 
     424      $this->php_cli = getenv('PHP_PATH'); 
     425 
     426      if (!is_executable($this->php_cli)) 
     427      { 
     428        throw new Exception('The defined PHP_PATH environment variable is not a valid PHP executable.'); 
     429      } 
     430    } 
     431 
    422432    $this->php_cli = null === $php_cli ? PHP_BINDIR.DIRECTORY_SEPARATOR.'php' : $php_cli; 
     433 
    423434    if (!is_executable($this->php_cli)) 
    424435    {