That’s strange, didn’t someone just say that was supposed to work? (what library was he using?) Post if you figure out what wrong.
That was me; I’m using the library at http://jsonrpcphp.org/ (download at http://jsonrpcphp.org/download.php?file=tgz&package=light), and I can confirm that this works:
<?php
require_once 'jsonRPCClient.php';
$bitcoin = new jsonRPCClient('http://username:password@localhost:8332/');
echo $bitcoin->getblockcount();
?>
Thanks to gavinandresen and satoshi for fixing that bug so fast.