By changing this line to
```
} else {
    STR_FREE(diff);
    goto nohost;
}
```
It will start to fail with strings like `http://www.example/img/test.png`. 
Because of that, `ext/filter/tests/015.phpt` is broken and needs a modification - which should be avoided if possible. Suggestions?