Christians Tagebuch PEAR 1.9.5dev1 released (28.6.2014, 14:49)

This article has originally been published on the PEAR blog:

PEAR 1.9.5dev1 released @ blog.pear.php.net .

I've just released a preview of the upcoming PEAR installer version 1.9.5: PEAR 1.9.5dev1.

Version 1.9.5 will be the first release of the PEAR installer since 3 years, and thus needs quite some testing before declaring it stable. Instead of using “RC1″, we opted for “dev1″ to keep the stability below alpha, so that upgrading normal packages in alpha/beta state do not automatically give you a potentially unstable PEAR version.

You can upgrade your existing PEAR version with the following command:

$ pear upgrade PEAR-1.9.5dev1

Pre-release versions of go-pear.phar and install-pear-nozlib.phar can be temporarily be found at

Please report any bugs you find on the PEAR bug tracker or on the pear-dev mailing list.


I'm looking for a new job. If you can recommend a company in Leipzig/Germany that's looking for a PHP developer, please drop me a mail.

Link
PEAR PEAR 1.9.5dev1 released (27.6.2014, 17:46)

I’ve just released a preview of the upcoming PEAR installer version 1.9.5: PEAR 1.9.5dev1.

Version 1.9.5 will be the first release of the PEAR installer since 3 years, and thus needs quite some testing before declaring it stable. Instead of using “RC1″, we opted for “dev1″ to keep the stability below alpha, so that upgrading normal packages in alpha/beta state do not automatically give you a potentially unstable PEAR version.

You can upgrade your existing PEAR version with the following command:
$ pear upgrade PEAR-1.9.5dev1

Pre-release versions of go-pear.phar and install-pear-nozlib.phar can be temporarily be found at

Please report any bugs you find on the PEAR bug tracker or on the pear-dev mailing list.

Link
Christians Tagebuch PEAR channel for GeSHi (12.6.2014, 21:06)

Finally: GeSHi now has an official PEAR channel at pear.geshi.org. The last released version 1.0.8.9 is available there.

Installation

$ pear channel-discover pear.geshi.org
$ pear install geshi/geshi

That's all. You can now include geshi.php and start using it.


I'm looking for a new job. If you can recommend a company in Leipzig/Germany that's looking for a PHP developer, please drop me a mail.

Link
Codelog PHP5+ Mail, Net_Socket and Net_SMTP (4.6.2014, 06:12)

Mail is one of the most popular PEAR packages still, but a little bit aged.

In order to break the back of it being something a little more modern, I forked it and the dependencies to PHP5 compatibility.

We've now got:

  • https://github.com/pear/Mail2 - Not yet released, I figure I'll give it a few days to bake
  • https://github.com/pear/Net_SMTP2 - Released as 0.1.0
  • https://github.com/pear/Net_Socket2 - Released as 0.1.0
If you use any of these components and are doing nasty E_STRICT error notification suppression, you can pretty much drop in the new version.

The key differences include Exceptions being raised, PHP5 syntax and no more E_DEPRECATED etc notices.

Link
Christians Tagebuch A PHP4 user in 2014 (15.5.2014, 20:44)

Today I stumbled on a bug report for the Mail_Mime package in PEAR: Bug #20222: 1.8.8 not compatible with PHP4 .

So in March 2014, someone noticed that a minor version upgrade of a package broke it on PHP4. Whoa.

But PEAR takes backwards compatibility very serious , so this bug was fixed.

The PEAR version naming standard looks similar to semantic versioning. Just remember that PEAR already decided on 2004-11-21 to follow this rules.


I'm looking for a new job. If you can recommend a company in Leipzig/Germany that's looking for a PHP developer, please drop me a mail.

Link
PHP_CodeSniffer 2.0.0a2 released (1.5.2014, 03:41)

I've just released the second alpha of PHP_CodeSniffer version 2.0.0. This update brings a new type of report performance improvements and Phar distribution for each download and testing. Information Report PHP_CodeSniffer now comes with an information report that is able to show you information about how your code is...

Link
PHP_CodeSniffer 2.0.0 alpha1 released (5.2.2014, 03:11)

I've just released the first alpha of PHP_CodeSniffer version 2.0.0. This update brings an often requested feature; the ability for PHP_CodeSniffer to automatically fix the problems that it finds. It also contains a complete rewrite of the comment parsing sniffs finally removing what I feel is the poorest code...

Link
Christians Tagebuch PEAR on PHP 5.5: could not extract package.xml (24.1.2014, 05:38)

I recently upgraded my work computer from Ubuntu 12.04 to Ubuntu 13.10. Trying to upgrade a pear package, I got the following error:

$ pear upgrade http_request2
downloading HTTP_Request2-2.2.1.tgz ...
Starting to download HTTP_Request2-2.2.1.tgz (107,339 bytes)
.........................done: 107,339 bytes
could not extract the package.xml file from
"/tmp/pear/install/HTTP_Request2-2.2.1.tgz"
Download of "pear/http_request2" succeeded, but it is not a valid package archive
Error: cannot download "pear/HTTP_Request2"
Download failed
upgrade failed

Ubuntu 13.10 ships with PHP 5.5.3, which changed the pack/unpack format strings a bit to align them to the Perl behavior. Unfortunately, this breaks backwards compatibility .

PEAR's Archive_Tar package used one of those now changed parameters and thus could not extract packages on PHP 5.5 until version 1.3.10. Version 1.3.11 fixes the issue and makes it compatible with 5.5

Now my problem was that the Ubuntu upgrade updated my PHP version, but not my manually managed PEAR installation. I thus had an old Archive_Tar version that did not work anymore with the new PHP version.

Luckily, fixing that issue was easy; I simply had to download and apply the patch :

$ pear info archive_tar|head -n1
ABOUT PEAR.PHP.NET/ARCHIVE_TAR-1.3.8
$ cd `pear config-get php_dir`
$ wget -O /tmp/archive.diff "https://pear.php.net/bugs/patch-download.php?id=19746&patch=archive_tar_php55.patch&revision=1355241213"
$ patch -p1 < /tmp/archive.diff
$ pear upgrade-all
... works

I'm looking for a new job. If you can recommend a company in Leipzig/Germany that's looking for a PHP developer, please drop me a mail.

Link
Christians Tagebuch Web Linking support in PEAR (10.10.2013, 14:20)

PEAR's HTTP2 package got Web Linking (RFC 5988) support in version 1.1.0.

Parsing HTTP Link: header values is now easy:

; rel="webmention"';

$http = new HTTP2();
$links = $http->parseLinks($link);
var_dump($links);
?>

It will give you the following output:

array(1) {
  [0] => array(2) {
    '_uri' => string(34) "http://pear.php.net/webmention.php"
    'rel' => array(1) {
      [0] => string(10) "webmention"
    }
  }
}

HTTP link headers are used to express relations of the resource to other URIs, e.g. copyright info or prev/next links of a paged result.

Apart from the URI, link headers may contain a number of attributes (parameters) . Here are some of them:

rel
Relation of the URI to the current resource, e.g. "copyright", "index", "next" or "stylesheet". See the list of registered relations .
type
MIME type of the URI. Can be used to link to alternate formats of the current resource.
title
Human readable title of the link

I implemented the HTTP2::parseLinks() method because web linking is used by WebMention to detect the URL of the linkback server.


I'm looking for a new job. If you can recommend a company in Leipzig/Germany that's looking for a PHP developer, please drop me a mail.

Link
PHP_CodeSniffer 1.4.7 and 1.5.0RC4 released (26.9.2013, 00:39)

PHP_CodeSniffer versions 1.4.7 and 1.5.0RC4 have just been uploaded to PEAR and are now available to install. Version 1.4.7 is primarily a bug fix release but also contains a new JUnit report format a few new sniff settings and a change to the PSR2 standard based on recently added...

Link
Links RSS 0.92   RDF 1.
Atom Feed  
PHP5 powered   PEAR
Link the Planet <a href="http://www.planet-pear.org/">Planet PEAR</a>