facebook/phpsh — pull request #36 by brainative (2012-12-11 17:38:55+00:00)
Title: Fixed an issue related to xdebug

# Pull request

## Issue related to xdebug

### Problem description

When xdebug is installed, and its xdebug.cli_color parameter is set to “2” (always color terminal output), phpsh throws an (uncatched) exception.

### Problem solution

In phpsh.php, line 190 (___phpsh___parse_dump(), switch/case block), instead of simply raising an exception when the type could not be defined, I added a last check : is xdebug.cli_color set to “2”, and if this is the case, I simply print out the $dump.

## Issue related to the build

### Problem description

When building (python setup.py build), a new file is created (src/xdebug-clients/geben/geben.elc) that is simply the compiled version of geben.el in the same directory.

As a built file, it should not appear as a “new untracked file”, but it should rather be ignored by git, as .pyc files (also compiled files present in the src/ directory).

### Problem solution

Add *.elc alongside with *.pyc in .gitignore.