[xdebug-dev] xdebug xdebug/xdebug.c - Implemented feature #445 (error_prepend_string and error_append_string are

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Sun, 5 Jul 2009 23:20:12 +0200

Date: Sun Jul 5 23:20:12 CEST 2009
User: Derick Rethans
Directory: xdebug

Log Message:
[0.25]
- Implemented feature #445 (error_prepend_string and error_append_string are
  ignored by xdebug_error_cb). (Patch by Kent Davidson <kent[@]marketruler.com>).

Modified files:
           xdebug/xdebug.c (version: 1.451)

[FILE: /xdebug/xdebug.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.450
retrieving revision 1.451
diff -u -r1.450 -r1.451
--- xdebug/xdebug.c:1.450 Sat Jul 04 12:31:44 2009 GMT
+++ xdebug/xdebug.c Sun Jul 05 19:20:12 2009 GMT
@@ -1918,6 +1918,8 @@
         int len;
         char **formats;
         xdebug_str str = {0, 0, NULL};
+ char *prepend_string;
+ char *append_string;
 
         if (html) {
                 formats = html_formats;
@@ -1925,6 +1927,10 @@
                 formats = text_formats;
         }
 
+ prepend_string = INI_STR("error_prepend_string");
+ append_string = INI_STR("error_append_string");
+
+ xdebug_str_add(&str, prepend_string ? prepend_string : "", 0);
         xdebug_str_add(&str, formats[0], 0);
 
         if (strlen(XG(file_link_format)) > 0 && html) {
@@ -2077,6 +2083,7 @@
                 }
 
                 xdebug_str_add(&str, formats[7], 0);
+ xdebug_str_add(&str, append_string ? append_string : "", 0);
         }
         return str.d;
 }
Received on Sun Jul 05 2009 - 23:20:17 BST

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