This is a patch for the php_odbtp.c file so that the php extension module works with php 5.3. Before, if you tried to load the module, php would throw up an error about ZVAL_ADDREF. Instead of using ZVAL_ADDREF, I replaced it with Z_ADDREF_P and it works now.
patch file