View Issue Details

IDProjectCategoryView StatusLast Update
0000079Xdebugpublic2004-09-15 08:55
Reportertony2001 Assigned To 
PrioritynormalSeveritytrivialReproducibilityalways
Status closedResolutionopen 
Summary0000079: patch regarding empty_string -> STR_EMPTY_ALLOC() change
Description

the patch should fix build with PHP's HEAD.

Additional Information

Index: xdebug_compat.c

RCS file: /repository/xdebug/xdebug_compat.c,v
retrieving revision 1.4
diff -u -r1.4 xdebug_compat.c
--- xdebug_compat.c 11 Apr 2004 14:44:04 -0000 1.4
+++ xdebug_compat.c 19 Jul 2004 14:47:12 -0000
@@ -302,7 +302,11 @@
|| ((int)T->str_offset.offset<0)
|| (T->str_offset.str->value.str.len <= T->str_offset.offset)) {
zend_error(E_NOTICE, "Uninitialized string offset: %d", T->str_offset.offset);
+#if ZEND_EXTENSION_API_NO < 220040718
T->tmp_var.value.str.val = empty_string;
+#else

  • T->tmp_var.value.str.val = STR_EMPTY_ALLOC();
    +#endif
    T->tmp_var.value.str.len = 0;
    } else {
    char c = str->value.str.val[T->str_offset.offset];
    @@ -365,7 +369,11 @@
    || (T->EA.data.str_offset.offset<0)
    || (T->EA.data.str_offset.str->value.str.len <= T->EA.data.str_offset.offset)) {
    zend_error(E_NOTICE, "Uninitialized string offset: %d", T->EA.data.str_offset.offset);
    +#if ZEND_EXTENSION_API_NO < 220040718
    T->tmp_var.value.str.val = empty_string;
    +#else
  • T->tmp_var.value.str.val = STR_EMPTY_ALLOC();
    +#endif
    T->tmp_var.value.str.len = 0;
    } else {
    char c = str->value.str.val[T->EA.data.str_offset.offset];
TagsNo tags attached.
Operating System
PHP Version5.0.0-dev

Activities

derick

2004-09-15 08:55

administrator   ~0000188

This has been fixed a while ago, closing the bug.

Issue History

Date Modified Username Field Change
2004-07-19 15:49 tony2001 New Issue
2004-09-15 08:55 derick Status new => closed
2004-09-15 08:55 derick Note Added: 0000188
2016-07-31 12:35 derick Category Debug client (console) => debugclient (debugging tool)
2016-07-31 12:35 derick Category debugclient (debugging tool) => (No Category)