Enabling phar on Dreamhost shared hosting?

Figured it out. If you add a directory at ~/.php/5.3/ and then put a file called phprc in it with the following line in it

extension=phar.so

then the phar extension gets loaded.


I found you have to put some more lines in the phprc file for it to work in FastCGI mode

extension=phar.so
detect_unicode = Off
phar.readonly = Off
phar.require_hash = Off
suhosin.executor.include.whitelist = phar