com php-src: - Fix compiler warning: phpdbg.c
| From: | Bob Weinand | Date: | Fri, 15 Nov 2013 16:24:22 +0000 |
| Subject: | com php-src: - Fix compiler warning: phpdbg.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-74931@lists.php.net to get a copy of this message | ||
Commit: d13c02bf68b0cf46f0b8a2720a9601717f9eace3
Author: Felipe Pena <felipensp@gmail.com> Fri, 15 Nov 2013 14:24:22 -0200
Parents: 8c67cf30b5453c44fd70b10c632690b064fbcf45
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d13c02bf68b0cf46f0b8a2720a9601717f9eace3
Log:
- Fix compiler warning
Changed paths:
M phpdbg.c
Diff:
diff --git a/phpdbg.c b/phpdbg.c
index e02b1b3..595b60c 100644
--- a/phpdbg.c
+++ b/phpdbg.c
@@ -19,6 +19,7 @@
#include "phpdbg.h"
#include "phpdbg_prompt.h"
#include "phpdbg_bp.h"
+#include "phpdbg_break.h"
#include "phpdbg_utils.h"
ZEND_DECLARE_MODULE_GLOBALS(phpdbg);
@@ -55,10 +56,10 @@ static PHP_MINIT_FUNCTION(phpdbg) /* {{{ */
#endif
REGISTER_LONG_CONSTANT("PHPDBG_FILE", FILE_PARAM, CONST_CS|CONST_PERSISTENT);
- REGISTER_LONG_CONSTANT("PHPDBG_METHOD", METHOD_PARAM, CONST_CS|CONST_PERSISTENT);
+ REGISTER_LONG_CONSTANT("PHPDBG_METHOD", METHOD_PARAM, CONST_CS|CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("PHPDBG_LINENO", NUMERIC_PARAM, CONST_CS|CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("PHPDBG_FUNC", STR_PARAM, CONST_CS|CONST_PERSISTENT);
-
+
return SUCCESS;
} /* }}} */
@@ -140,34 +141,34 @@ static PHP_FUNCTION(phpdbg_break)
long type;
char *expr = NULL;
zend_uint expr_len = 0;
-
+
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ls", &type, &expr,
&expr_len) == FAILURE) {
return;
}
-
+
switch (type) {
case METHOD_PARAM:
phpdbg_do_break_method(
expr, expr_len TSRMLS_CC);
break;
-
+
case FILE_PARAM:
phpdbg_do_break_file(
expr, expr_len TSRMLS_CC);
break;
-
+
case NUMERIC_PARAM:
phpdbg_do_break_lineno(
expr, expr_len TSRMLS_CC);
break;
-
+
case STR_PARAM:
phpdbg_do_break_func(
expr, expr_len TSRMLS_CC);
break;
-
+
default: zend_error(
- E_WARNING, "unrecognized parameter type %d", type);
+ E_WARNING, "unrecognized parameter type %ld", type);
}
} else if (EG(current_execute_data) && EG(active_op_array)) {
zend_ulong opline_num = (EG(current_execute_data)->opline -