Date: Wed Jan 25 09:49:16 CET 2006
User: Derick Rethans
Directory: xdebug
Log Message:
[0.25]
- Fixed printing of stack trace on an exception.
Modified files:
xdebug/xdebug.c (version: 1.293)
[FILE: /xdebug/xdebug.c]
===================================================================
RCS file: cvstemp,v
retrieving revision 1.292
retrieving revision 1.293
diff -u -r1.292 -r1.293
--- xdebug/xdebug.c:1.292 Tue Jan 24 21:13:03 2006 GMT
+++ xdebug/xdebug.c Wed Jan 25 07:49:15 2006 GMT
@@ -1664,17 +1664,19 @@
void xdebug_throw_exception_hook(zval *exception TSRMLS_DC)
{
zval *message, *file, *line;
-#if PHP_MAJOR_VERSION >= 6
- zend_class_entry *default_ce = zend_exception_get_default(TSRMLS_C);
-#else
- zend_class_entry *default_ce = zend_exception_get_default();
-#endif
- zend_class_entry *exception_ce = zend_get_class_entry(exception TSRMLS_CC);
+ zend_class_entry *default_ce, *exception_ce;
if (!exception) {
return;
}
+#if PHP_MAJOR_VERSION >= 6
+ default_ce = zend_exception_get_default(TSRMLS_C);
+#else
+ default_ce = zend_exception_get_default();
+#endif
+ exception_ce = zend_get_class_entry(exception TSRMLS_CC);
+
message = zend_read_property(default_ce, exception, "message", sizeof("message")-1, 0 TSRMLS_CC);
file = zend_read_property(default_ce, exception, "file", sizeof("file")-1, 0 TSRMLS_CC);
line = zend_read_property(default_ce, exception, "line", sizeof("line")-1, 0 TSRMLS_CC);
Received on Wed Jan 25 2006 - 09:49:25 GMT
This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST