Skip to content

Commit d13c02b

Browse files
committed
- Fix compiler warning
1 parent 8c67cf3 commit d13c02b

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

phpdbg.c

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "phpdbg.h"
2020
#include "phpdbg_prompt.h"
2121
#include "phpdbg_bp.h"
22+
#include "phpdbg_break.h"
2223
#include "phpdbg_utils.h"
2324

2425
ZEND_DECLARE_MODULE_GLOBALS(phpdbg);
@@ -55,10 +56,10 @@ static PHP_MINIT_FUNCTION(phpdbg) /* {{{ */
5556
#endif
5657

5758
REGISTER_LONG_CONSTANT("PHPDBG_FILE", FILE_PARAM, CONST_CS|CONST_PERSISTENT);
58-
REGISTER_LONG_CONSTANT("PHPDBG_METHOD", METHOD_PARAM, CONST_CS|CONST_PERSISTENT);
59+
REGISTER_LONG_CONSTANT("PHPDBG_METHOD", METHOD_PARAM, CONST_CS|CONST_PERSISTENT);
5960
REGISTER_LONG_CONSTANT("PHPDBG_LINENO", NUMERIC_PARAM, CONST_CS|CONST_PERSISTENT);
6061
REGISTER_LONG_CONSTANT("PHPDBG_FUNC", STR_PARAM, CONST_CS|CONST_PERSISTENT);
61-
62+
6263
return SUCCESS;
6364
} /* }}} */
6465

@@ -140,34 +141,34 @@ static PHP_FUNCTION(phpdbg_break)
140141
long type;
141142
char *expr = NULL;
142143
zend_uint expr_len = 0;
143-
144+
144145
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ls", &type, &expr, &expr_len) == FAILURE) {
145146
return;
146147
}
147-
148+
148149
switch (type) {
149150
case METHOD_PARAM:
150151
phpdbg_do_break_method(
151152
expr, expr_len TSRMLS_CC);
152153
break;
153-
154+
154155
case FILE_PARAM:
155156
phpdbg_do_break_file(
156157
expr, expr_len TSRMLS_CC);
157158
break;
158-
159+
159160
case NUMERIC_PARAM:
160161
phpdbg_do_break_lineno(
161162
expr, expr_len TSRMLS_CC);
162163
break;
163-
164+
164165
case STR_PARAM:
165166
phpdbg_do_break_func(
166167
expr, expr_len TSRMLS_CC);
167168
break;
168-
169+
169170
default: zend_error(
170-
E_WARNING, "unrecognized parameter type %d", type);
171+
E_WARNING, "unrecognized parameter type %ld", type);
171172
}
172173
} else if (EG(current_execute_data) && EG(active_op_array)) {
173174
zend_ulong opline_num = (EG(current_execute_data)->opline -

0 commit comments

Comments
 (0)