[xdebug-dev] svn: /xdebug/trunk/ xdebug.c

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Fri, 01 Jan 2010 17:15:00 +0000

derick Fri, 01 Jan 2010 17:15:00 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=3186

Log:
- Remove checking for "previous" in PHP < 5.2, because it doesn't exist there.

Changed paths:
    U xdebug/trunk/xdebug.c

Modified: xdebug/trunk/xdebug.c
===================================================================
--- xdebug/trunk/xdebug.c 2010-01-01 16:53:31 UTC (rev 3185)
+++ xdebug/trunk/xdebug.c 2010-01-01 17:15:00 UTC (rev 3186)
@@ -2547,6 +2547,7 @@
                 php_error(E_ERROR, "Your exception class uses incorrect types for common properties: 'message' and 'file' need to be a string and 'line' needs to be an integer.");
         }

+#if (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION >= 2) || PHP_MAJOR_VERSION >= 6
         previous_exception = zend_read_property(default_ce, exception, "previous", sizeof("previous")-1, 1 TSRMLS_CC);
         if (previous_exception && Z_TYPE_P(previous_exception) != IS_NULL) {
                 xdebug_message_trace = zend_read_property(default_ce, previous_exception, "xdebug_message", sizeof("xdebug_message")-1, 1 TSRMLS_CC);
@@ -2554,6 +2555,7 @@
                         xdebug_str_add(&tmp_str, Z_STRVAL_P(xdebug_message_trace), 0);
                 }
         }
+#endif
         if (!PG(html_errors)) {
                 xdebug_str_addl(&tmp_str, "\n", 1, 0);
         }
Received on Fri Jan 01 2010 - 17:15:01 GMT

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST