So I finally got PEAR to work in my Windows installation of PHP. The problem was that my test program was called pear.php. The require statement at the top of the script was:
require_once('pear.php');
Which meant that it was trying to call itself and not the PEAR module. Simple problem, I can't believe that I missed that.