News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Till Klampaeckel's Blog:
PHAR and FreeBSD
November 08, 2011 @ 11:51:58

Till Klampaeckel has a new post about replacing the now-missing phar port on FreeBSD installations with a custom compile work-around.

I noticed that archivers/pecl-phar vanished from the ports tree on one of my FreeBSD servers. Problem? Reasons to remove the port were: the port is unmaintained, the port was based on the outdated phar extension from pec and that phar (in pecl) contains open security issues. The simple solution is to create a new port which of course will use the phar which is bundled in PHP's core.

He includes the simple five or six step process you'll need to follow to compile your own phar extension for your installation - grabbing the latest source, compiling (configure/make) and putting the resulting shared object (.so) in the right place for PHP to find it. All that's left then is to enable it in the php.ini. Phar is an archive creation tool that (normally) comes bundled with versions of PHP and can be used to both read and write to compressed packages.

0 comments voice your opinion now!
phar package freebsd compile archive


blog comments powered by Disqus

Similar Posts

Internet Super Hero Blog: Compiling mysqlnd with PHP 5.2/5.3/6.0

Pierre-Alain Joye's Blog: htscanner 0.6.1

Pierre-Alain Joye's Blog: Welcome Amir and Validate-0.6.4 release

Kevin van Zonneveld's Blog: 7 Steps to better PEAR documentation

Kevin Schroeder's Blog: Deployment beta for Zend Server 5.5 - Getting Started


Community Events

Don't see your event here?
Let us know!


php7 release language introduction podcast development version opinion laravel5 extension unittest framework library series api interview community laravel security voicesoftheelephpant

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework