I’ve just made to isntall xdebug 2.x (cvs version) substitutting xdebug 1.3 in my localhost. Previously, the xdebug compilation was not my problem. It was compiled just fine. No error at all. But when I try to use it as a module, php -v will throw up and error that module can not be loaded for undefined symbol: zend_throw_error_exception.

I was on a a good mood so I took a peek in /usr/include/php/Zend/zend_exception.h. Voila, as what I’ve expected, zend_throw_error_exception was not defined there. A little hack did fine. Below, I replaced the zend_throw_error_exception to zend_throw_exception. Remove extra param, re-comple, and voila. It’s loadable now :).


/* throw an exception if we are in EH_THROW mode
* but DO NOT overwrite a pending exception
*/
if (PG(error_handling) == EH_THROW && !EG(exception)) {
//zend_throw_error_exception(PG(exception_class), buffer, 0, type TSRMLS_CC);
zend_throw_exception(PG(exception_class), buffer, type TSRMLS_CC);
}

Free Image Hosting at www.ImageShack.us

Sphere: Related Content