I have been playing around with the new PHAR extension in PHP 5.3 and came into a problem that caused me a few days head scratching.
As PHAR is new to PHP there really is not a lot of real world examples and tutorials, so the problem:
I compiled a new PHAR file according to the example on php.net ran the example in a browser only to come up with a blank screen/web page Cry. I knew the PHAR extension was working because I could access the image files in it, it just wasn’t parsing the PHP coded pages.
With a lot of searching through google I came accross the solution.
I had compiled PHP with the suhosin extension and this was blocking the PHAR from working so the solution is to put this code in php.ini file:
And the magic worked since my PHAR file is working now Cool