[xdebug-dev] xdebug xdebug/xdebug_var.c - Make sure we add the "reference" mark also for non-debug-zval var_dump calls.

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Sat, 11 Nov 2006 22:57:23 +0100

Date: Sat Nov 11 22:57:23 CET 2006
User: Derick Rethans
Directory: xdebug

Log Message:
[0.25]
- Make sure we add the "reference" mark also for non-debug-zval var_dump calls.

Modified files:
           xdebug/xdebug_var.c (version: 1.77)

[FILE: /xdebug/xdebug_var.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -r1.76 -r1.77
--- xdebug/xdebug_var.c:1.76 Mon Oct 23 18:33:21 2006 GMT
+++ xdebug/xdebug_var.c Sat Nov 11 20:57:23 2006 GMT
@@ -836,6 +836,10 @@
 
         if (debug_zval) {
                 xdebug_str_add(str, xdebug_sprintf("<i>(refcount=%d, is_ref=%d)</i>,", (*struc)->refcount, (*struc)->is_ref), 1);
+ } else {
+ if ((*struc)->is_ref) {
+ xdebug_str_add(str, "&amp;", 0);
+ }
         }
         switch (Z_TYPE_PP(struc)) {
                 case IS_BOOL:
Received on Sat Nov 11 2006 - 22:57:26 GMT

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