Yeah! seems like updating gcc to 4.8.1 fixed it.
here are some more things I did
yum install automake libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel zlib-devel python-devel ruby-devel php-devel openssl openssl-devel
# update to gcc4.8.1
install latest autoconf
make sure you have following dependencies
wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz tar xvf autoconf-2.69.tar.gz cd autoconf-2.69 ./configure make make install
After above prerequisite I was able to build thrift for php 0.9.1 and I can now communicate with my cluster nodes. I will write detailed steps a bit later
Hope this helps
EDIT 1
Actually I could build thrift and cassandra PDO without gcc 4.8.1, I maybe doing something wrong before. I have written full list of commands, which I am verifying and I will share as a step by step guide later.
EDIT 2