summaryrefslogtreecommitdiff
path: root/devel/php-dbg2/files/patch-dbg_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'devel/php-dbg2/files/patch-dbg_cmd.c')
-rw-r--r--devel/php-dbg2/files/patch-dbg_cmd.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/php-dbg2/files/patch-dbg_cmd.c b/devel/php-dbg2/files/patch-dbg_cmd.c
new file mode 100644
index 000000000000..20571784315b
--- /dev/null
+++ b/devel/php-dbg2/files/patch-dbg_cmd.c
@@ -0,0 +1,20 @@
+--- ./dbg_cmd.c.orig 2010-04-13 09:41:26.000000000 -0400
++++ ./dbg_cmd.c 2010-04-13 09:41:53.000000000 -0400
+@@ -601,7 +601,7 @@
+
+ memset(&data, 0, sizeof(data));
+ Z_TYPE_P(&data) = IS_STRING;
+- data.refcount++;
++ Z_ADDREF(data);
+
+ if (DBG(eval_error)) {
+ efree(DBG(eval_error));
+@@ -627,7 +627,7 @@
+
+ memset(&buf, 0, sizeof(buf));
+ Z_TYPE_P(&buf) = IS_STRING;
+- buf.refcount++;
++ Z_ADDREF(buf);
+
+ if (req->istr!=0 && (!dbg_packet_findstring(inpack, req->istr, &str, &sz) || sz<=0)) return 0;
+ if (str && strlen(str)==0) str = NULL;