I have tried to use gmp_sign in my file to find the sign of the value, but i getting an error like call to undefined function with fatal error.
Is it Ubuntu/Linux? Seems like GMP is not installed on the system. Follow these steps:
Installed GMP with apt-get install php5-gmp
Added extension=php_gmp.so
to php.ini