Five Minutes » PEAR http://xn--9bi.net Really, it's all you need Mon, 13 Sep 2010 04:00:26 +0000 en hourly 1 http://wordpress.org/?v=3.3.1 PEAR DB 1.7.14RC1 Released http://xn--9bi.net/2007/11/28/pear-db-1714rc1-released/ http://xn--9bi.net/2007/11/28/pear-db-1714rc1-released/#comments Wed, 28 Nov 2007 02:34:39 +0000 Adam Harvey http://xn--9bi.net/2007/11/28/pear-db-1714rc1-released/ I’ve pushed out a beta release of PEAR DB versioned 1.7.14RC1 with a few fixes for issues reported since 1.7.13. Nothing in there is hugely urgent or high-risk, but I’ve made it a beta rather than a stable release due to the fact that I’m still a few thousand kilometres from my testing setup, which means that I’ve only been able to test against the databases I have to hand on my laptop — MySQL, PostgreSQL and SQLite.

All being well, I’m looking to get 1.7.14 final out around Monday (along with an Informix fix that I can’t work on without my Informix testing VM). Please feel free to test this release and report any issues.

]]>
http://xn--9bi.net/2007/11/28/pear-db-1714rc1-released/feed/ 0
$pear->list http://xn--9bi.net/2007/10/13/pear-list/ http://xn--9bi.net/2007/10/13/pear-list/#comments Sat, 13 Oct 2007 03:05:40 +0000 Adam Harvey http://xn--9bi.net/2007/10/13/pear-list/ I’ve seen three people ask a variation of how can I get a list of installed PEAR packages from within my PHP script in the last few weeks on IRC, and two just in the last day. Because I’m a helpful sort, here’s a little morsel of code that will do just that:

include 'PEAR/Registry.php';

$reg = new PEAR_Registry;
foreach ($reg->listPackages() as $package) {
    print "$package\n";
}

This should work with pretty much any version of PEAR.

(Update: Ken has a nifty bit of code in the comments to check for a specific installed version of a package.)

]]>
http://xn--9bi.net/2007/10/13/pear-list/feed/ 5
DB 1.7.13 Released http://xn--9bi.net/2007/09/22/db-1713-released/ http://xn--9bi.net/2007/09/22/db-1713-released/#comments Fri, 21 Sep 2007 16:23:08 +0000 Adam Harvey http://xn--9bi.net/2007/09/22/db-1713-released/ I’ve just released version 1.7.13 of PEAR’s DB package. This includes a couple of minor fixes for the MySQL, MySQLi and SQLite drivers, none of which I’d class as particularly urgent. Grab it at your leisure from a PEAR server near you.

Important note: It’s been this way for a couple of years now, but I’d again like to reiterate that DB is deprecated in favour of MDB2, which is pretty DB-like if you load the Extended module. If you haven’t already made plans to migrate your programs depending on DB to MDB2, now might be a good time to start.

Particularly in light of this post to PEAR-DEV, which I predict is going to create considerably more e-mail for me to sort through. Short version: I’m considering setting an end-of-life date for DB at 8/8/8, the same as PHP4′s end-of-security-fix-life date. If you want to address the open questions in that post, feel free to reply to PEAR-DEV or my e-mail directly. My e-mail address is on the sidebar both on my blog home page and my about page.

]]>
http://xn--9bi.net/2007/09/22/db-1713-released/feed/ 2
PEAR DB 1.7.12 http://xn--9bi.net/2007/06/29/pear-db-1712/ http://xn--9bi.net/2007/06/29/pear-db-1712/#comments Fri, 29 Jun 2007 13:24:13 +0000 Adam Harvey http://xn--9bi.net/2007/06/29/pear-db-1712/ It’s about a month later than I originally planned, but PEAR DB 1.7.12 has just been uploaded to a PEAR server near you. If you’re using DB with PostgreSQL and PHP 5.2.x, you’ll want this version, due to a backward compatibility break in PHP 5.2′s pg_escape_string. Otherwise, there’s not too much that’s exciting, although hopefully the Fedora Extras packaging guys will forgive me for screwing up the test suite slightly in 1.7.11!

Note that DB will no longer install with PEAR installers earlier than PEAR 1.4.0, as it now uses the newer package.xml format introduced in that version. That being said, if you’re still using PEAR 1.3, you really should upgrade per the instructions on the PEAR web site, since it’s no longer supported and all.

As per my usual plan, I’ll release 1.7.13 at the end of July (hopefully) if any bugs are reported.

]]>
http://xn--9bi.net/2007/06/29/pear-db-1712/feed/ 0