fix typos and set zend_throw_exception_hook to throw OrigException instead

As title said,  I set zend exception hook(a function pointer), and we have the chance  to handle PHP exceptions. Maybe  you will get core dump for this commit, I will find it lout later.