avalanche123/Imagine — Issue #85: [Upstream] upcoming phar-build change, whitespace/comment stripping in phar
Author: damianb
Created: 2011-11-05 17:19:53+00:00
State: open

Hopefully, when my PR for phar-util is accepted (see koto/phar-util#14), I see Imagine wanting to take advantage of the new feature; in most of my own tests on working phars, the size has dropped by approximately 40-50% in well-commented code.

The phar-build line in the makefile would likely need to be changed to this (the only change is the addition of the `--strip-files` flag and param):

```
phar-build -s ./lib/Imagine -S ./.stub --phar ./imagine.phar --ns --strip-files ".php$"
```

I'd appreciate it if this issue were marked as "research" for the time being until the associated is merged, thanks!