Skip to content

Commit

Permalink
Misc test case fixes and memory issues.
Browse files Browse the repository at this point in the history
Already part of Xdebug proper too, but needed it in here to be able to proceed.
  • Loading branch information
derickr committed Oct 25, 2014
1 parent 07b3ac4 commit a78f522
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/bug00538-2.phpt
Expand Up @@ -48,7 +48,7 @@ array(2) {
["params"]=>
array(3) {
["param1"]=>
string(%d) "'%sxdebug'"
string(%d) "'%s'"
["param2"]=>
string(16) "'candena\\a\\nb'"
["param3"]=>
Expand Down
2 changes: 1 addition & 1 deletion xdebug.c
Expand Up @@ -1624,7 +1624,7 @@ void xdebug_execute_internal(zend_execute_data *current_execute_data, struct _ze
}

/* Store return value in the trace file */
if (XG(collect_return) && do_return && XG(do_trace) && XG(trace_context) && EG(opline_ptr)) {
if (XG(collect_return) && do_return && XG(do_trace) && XG(trace_context) && EG(opline_ptr) && current_execute_data->opline) {
cur_opcode = *EG(opline_ptr);
if (cur_opcode) {
zval *ret = xdebug_zval_ptr(cur_opcode->XDEBUG_TYPE(result), &(cur_opcode->result), current_execute_data TSRMLS_CC);
Expand Down
1 change: 1 addition & 0 deletions xdebug_compat.c
Expand Up @@ -75,6 +75,7 @@ zval *xdebug_zval_ptr(int op_type, XDEBUG_ZNODE *node, zend_execute_data *zdata
if (!zdata->opline) {
return NULL;
}

switch (op_type & 0x0F) {
case IS_CONST:
#if PHP_VERSION_ID >= 50399
Expand Down

0 comments on commit a78f522

Please sign in to comment.