 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Project: Box - Making Creating PHARs Easier
by Chris Cornutt August 24, 2012 @ 10:33:52
There's a new project on Github that wants to help making your phar archives for your PHP applications. The process is a little obtuse right now and Box wants to simplify it.
Box is a library and command line application for simplifying the PHAR creation process. [Features include] creating new PHARs with a simple configuration file, add and replace files in existing PHARs, extract existing PHARs, with option to cherry pick files and verify PHAR signatures.
The project is still relatively young but it looks like it's off to a good start. Phar files are a powerful tool to have in a PHP developer's arsenal but developing them can be a pain. Hopefully something like this can make life easier.
voice your opinion now!
project phar build manage creation github
PHPBuilder.com: Two PHP 5 Security Flaws Found
by Chris Cornutt July 04, 2012 @ 21:04:33
As reported in this new post on PHPBuilder.com, there are two new security issues that could allow an attacker to execute their own code (note: these are fixed by the latest releases, PHP 5.4.4 and PHP 5.3.14).
The flaws are related to each other, with the primary issue being an insecure implementation of the DES within the crypt() function. In his eSecurityPlanet article about recent PHP security updates, Sean Michael Kerner provides the details of these two security flaws.
The issue stems from a flaw in the DES implementation where certain keys are truncated before the DES digestion and a problem in the phar extension that could allow for arbitrary code execution. You can find more on these security issues here.
voice your opinion now!
security issue des phar extension upgrade
Vance Lucas' Blog: Nginx + PHP-FPM Blank Pages with Phar Packages
by Chris Cornutt March 08, 2012 @ 12:18:02
Vance Lucas has a new post sharing some of his experience in setting up nginx+PHP-FPM with phar packages that he recently had with setting up a new server instance for a company. The problem showed itself as blank pages, apparently due to a feature in the Suhosin security package.
Ran into this issue when setting up a new VPS for AutoRidge. This happens when using Nginx and PHP-FPM with PHP 5.3+ and the Suhosin patch when trying to run a PHP script using a PHAR package. From what I can gather, the Suhosin patch basically blocks PHP include/require functions from executing files ending with .phar, which results in a PHP segfault that leaves no trace of any error at all.
His solution is a pretty simple one - edit the "suhosin.ini" file to allow for the opening of includes in phar files (suhosin.executor.include.whitelist). You can find out more about the Suhosin security tool on the project's website.
voice your opinion now!
nginx phpfpm problem phar package suhosin
PHPMaster.com: Packaging Your Apps with Phar
by Chris Cornutt February 16, 2012 @ 09:53:11
On PHPMaster.com today there's a new tutorial showing you how to package up your applications using the phar functionality that's bundled in to recent PHP versions.
PHAR ("Php ARchive") is analogous to the JAR file concept but for PHP. If you have PHP 5.3 or greater, the Phar extension is built-in and enabled; you can start using it without any additional requirements. This article is intended to shed some light on this important feature for those who haven't used it before. Hopefully you'll find it a very helpful tool and have a better and faster deployment experience.
They show you how to create a sample project to build the phar from - a simple application that prints out a message and the contents of a configuration file. Code is included to help you build the phar file and how to define the stub file to pull in your application's files and folder.
voice your opinion now!
package application phar tutorial
Till Klampaeckel's Blog: PHAR and FreeBSD
by Chris Cornutt 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.
voice your opinion now!
phar package freebsd compile archive
ZendCasts.com: Fun with Phar
by Chris Cornutt October 04, 2011 @ 08:14:16
New today on ZendCasts.com there's a screencast tutorial about using phar archives in your applications.
Phar is a new thing that's developed on the horizon over the last few years that's essentially a PHP archive or library.
He shows how to set up a basic application (non-Zend Framework) that does a "hello world" sort of output showing a date "next week". Also included are the commands to bundle it up into a phar archive using the features already built into PHP. The build stub uses the buildFromDirectory and compression/buffering. He also points out a common problem with the default settings on many PHP installed - an INI setting that disables phar creation. Thankfully, it's easy to change via a ini_set call updating the "phar.readonly" setting.
voice your opinion now!
screencast zendcast archive phar tutorial introduction
|
Community Events
Don't see your event here? Let us know!
|