Skip to content

Commit

Permalink
Filter PHPUnit script. Closes #682.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Oct 6, 2012
1 parent 3611cc3 commit ba8bc0a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog.md
Expand Up @@ -3,6 +3,11 @@ PHPUnit 3.7

This is the list of changes for the PHPUnit 3.7 release series.

PHPUnit 3.7.4
-------------

* Fixed #682: `phpunit` script appears in stacktrace.

PHPUnit 3.7.3
-------------

Expand Down
3 changes: 2 additions & 1 deletion PHPUnit/Util/Filter.php
Expand Up @@ -106,7 +106,8 @@ public static function getFilteredStacktrace(Exception $e, $asString = TRUE)
foreach ($eTrace as $frame) {
if (isset($frame['file']) && is_file($frame['file']) &&
!isset($blacklist[$frame['file']]) &&
strpos($frame['file'], $prefix) !== 0) {
strpos($frame['file'], $prefix) !== 0 &&
$frame['file'] !== $GLOBALS['_SERVER']['_']) {
if ($asString === TRUE) {
$filteredStacktrace .= sprintf(
"%s:%s\n",
Expand Down

1 comment on commit ba8bc0a

@drgomesp
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This still doesn't solve the problem, as I stated at #682 again.

Please sign in to comment.