com php-src: - Fix data type: phpdbg_info.c
| From: | Bob Weinand | Date: | Sun, 24 Nov 2013 01:49:48 +0000 |
| Subject: | com php-src: - Fix data type: phpdbg_info.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-74678@lists.php.net to get a copy of this message | ||
Commit: c1e140d0871911379d7e4faf85e28987468de523
Author: Felipe Pena <felipensp@gmail.com> Sat, 23 Nov 2013 23:49:48 -0200
Parents: f4f6c8f51797ffc18ae600fd8533d762c6034fb8
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c1e140d0871911379d7e4faf85e28987468de523
Log:
- Fix data type
Changed paths:
M phpdbg_info.c
Diff:
diff --git a/phpdbg_info.c b/phpdbg_info.c
index f7588fe..724b30c 100644
--- a/phpdbg_info.c
+++ b/phpdbg_info.c
@@ -151,8 +151,9 @@ PHPDBG_INFO(literal) /* {{{ */
{
if ((EG(in_execution) && EG(active_op_array)) || PHPDBG_G(ops)) {
zend_op_array *ops = EG(active_op_array) ? EG(active_op_array) : PHPDBG_G(ops);
- int literal =0, count = ops->last_literal-1;
-
+ unsigned int literal = 0;
+ int count = ops->last_literal-1;
+
if (ops->function_name) {
if (ops->scope) {
phpdbg_notice(
@@ -170,10 +171,10 @@ PHPDBG_INFO(literal) /* {{{ */
"Literal Constants @ %p (%d)", ops, count);
}
}
-
+
while (literal < ops->last_literal) {
if (Z_TYPE(ops->literals[literal].constant) != IS_NULL) {
- phpdbg_write("|-------- C%lu -------> [", literal);
+ phpdbg_write("|-------- C%u -------> [", literal);
zend_print_zval(
&ops->literals[literal].constant, 0);
phpdbg_write("]");
@@ -184,7 +185,7 @@ PHPDBG_INFO(literal) /* {{{ */
} else {
phpdbg_error("Not executing !");
}
-
+
return SUCCESS;
} /* }}} */
@@ -241,7 +242,7 @@ PHPDBG_INFO(classes) /* {{{ */
if ((*ce)->info.user.filename) {
phpdbg_writeln(
- "|---- in %s on line %lu",
+ "|---- in %s on line %u",
(*ce)->info.user..filename,
(*ce)->info.user.line_start);
} else phpdbg_writeln("|---- no source code");