Hi,
I've never used DB2 or any other Database functions except MySQL, mSQL, msSQL, and Postgresql.
Anyway, this is what I came across:
http://www.php.net/manual/en/ref.dba.php
About 1/4 way down, you'll notice it mentions, compile with --with-db2
hope this helps,
-sridhar