Call Directory Errors in version 2.9.0.10

I have just started using the directory for phone book and it all works fine when calling in but when someone presses # for the directory without entering anything I get 4 email errors, does anyone know how to fix this or why this happening?

2048: Non-static method DB::connect() should not be called statically, assuming $this from incompatible context in /var/lib/asterisk/agi-bin/directory.lib.php on line 86
2048: Non-static method DB::parseDSN() should not be called statically, assuming $this from incompatible context in /usr/share/pear/DB.php on line 520
2048: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /usr/share/pear/DB.php on line 557
2048: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /usr/share/pear/DB/common.php on line 1347

Did you ever get this resolved as I am receiving the same errors?

I’ve got the same issue…

anyone?

Not sure whether this has been fixed in the latest versions of Directory

Researching brings up some info about issues with Pear DB and that they will not be fixed

http://pear.php.net/bugs/bug.php
http://forums.devshed.com/php-development-5/non-static-method-db-connect-should-not-be-called-statically-462291.html

The fix was to modify the following files
/usr/share/pear/DB.php
/var/lib/asterisk/agi-bin/directory.agi and directory.lib.php

I have some patch files but they are not well tested, so PM me if you want them.