In trying to get ODBC PDO working with Microsoft's MSSQL driver on Debian I've found that I need to apply patches to the PHP extension (see https://bugs.php.net/bug.php?id=50444 for those patches).
Having patched the code I want to rebuild the php5-odbc package. I don't really want to have to rebuild all the PHP packages though. How do I go about doing this?