Clam-AV being utilized as a PHP extension, pretty cool, however still a little unstable. Why not provide a little more protection while letting people upload files?
Extensions
Extension Writing Tutorial
Zend produced a hello world example on writing an extension for PHP. This is not exactly for PEAR but a good resource on where to start with extension building.
