Skip to content

Commit

Permalink
- A small optimisation, that defers file length checking until it's r…
Browse files Browse the repository at this point in the history
…eally needed.

SVN Rev: 3365
  • Loading branch information
derickr committed Nov 3, 2010
1 parent cc0b1c4 commit 7d40854
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xdebug.c
Expand Up @@ -1743,7 +1743,6 @@ ZEND_DLEXPORT void xdebug_statement_call(zend_op_array *op_array)
function_stack_entry *fse;
int lineno;
char *file;
int file_len = 0;
int level = 0;
TSRMLS_FETCH();

Expand All @@ -1754,7 +1753,6 @@ ZEND_DLEXPORT void xdebug_statement_call(zend_op_array *op_array)
lineno = EG(current_execute_data)->opline->lineno;

file = op_array->filename;
file_len = strlen(file);

if (XG(do_code_coverage)) {
xdebug_count_line(file, lineno, 0, 0 TSRMLS_CC);
Expand Down Expand Up @@ -1814,6 +1812,7 @@ ZEND_DLEXPORT void xdebug_statement_call(zend_op_array *op_array)
int break_ok;
int old_error_reporting;
zval retval;
int file_len = strlen(file);

for (le = XDEBUG_LLIST_HEAD(XG(context).line_breakpoints); le != NULL; le = XDEBUG_LLIST_NEXT(le)) {
brk = XDEBUG_LLIST_VALP(le);
Expand Down

0 comments on commit 7d40854

Please sign in to comment.