com php-src: - Removed unused var: phpdbg_prompt.c
| From: | Bob Weinand | Date: | Fri, 22 Nov 2013 23:30:26 +0000 |
| Subject: | com php-src: - Removed unused var: phpdbg_prompt.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-74698@lists.php.net to get a copy of this message | ||
Commit: 968421c145c6107ed63b6cf3f1e8e31de706b25a
Author: Felipe Pena <felipensp@gmail.com> Fri, 22 Nov 2013 21:30:26 -0200
Parents: 4a6f7373a32ee6dd5cb71324cf2312d98659cf27
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=968421c145c6107ed63b6cf3f1e8e31de706b25a
Log:
- Removed unused var
Changed paths:
M phpdbg_prompt.c
Diff:
diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c
index 8f79595..3d82fbd 100644
--- a/phpdbg_prompt.c
+++ b/phpdbg_prompt.c
@@ -372,7 +372,8 @@ PHPDBG_COMMAND(leave) /* {{{ */
return PHPDBG_LEAVE;
} /* }}} */
-static inline void phpdbg_restore_frame(TSRMLS_D) { /* {{{ */
+static inline void phpdbg_restore_frame(TSRMLS_D) /* {{{ */
+{
if (PHPDBG_FRAME(num) == 0) {
return;
}
@@ -391,7 +392,8 @@ static inline void phpdbg_restore_frame(TSRMLS_D) { /* {{{ */
EG(called_scope) = PHPDBG_EX(current_called_scope);
} /* }}} */
-static inline void phpdbg_switch_frame(int frame TSRMLS_DC) { /* {{{ */
+static inline void phpdbg_switch_frame(int frame TSRMLS_DC) /* {{{ */
+{
zend_execute_data *execute_data =
PHPDBG_FRAME(num)?PHPDBG_FRAME(execute_data):EG(current_execute_data);
int i = 0;
@@ -627,8 +629,7 @@ PHPDBG_COMMAND(back) /* {{{ */
limit = (param->type == NUMERIC_PARAM) ? param->num : 0;
zval **file, **line, **funcname, **class, **type, **args;
- char *func, is_class;
- long funcsize;
+ char is_class;
zend_fetch_debug_backtrace(
&zbacktrace, 0, 0, limit TSRMLS_CC);
@@ -655,9 +656,6 @@ PHPDBG_COMMAND(back) /* {{{ */
zend_hash_find(Z_ARRVAL_PP(tmp), "type", sizeof("type"), (void
**)&type);
}
- funcsize = Z_STRLEN_PP(funcname) + (is_class == FAILURE?0:Z_STRLEN_PP(type) +
Z_STRLEN_PP(class)) + 1;
-
- func = emalloc(funcsize + 2);
phpdbg_write(
"frame #%d: %s%s%s(",
i++, Z_STRVAL_PP(funcname),