1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 17:38:14 +02:00

Fixed info literal

This commit is contained in:
Bob Weinand
2013-11-23 18:36:33 +01:00
parent b76b543cae
commit eb67cb6914
2 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -338,7 +338,7 @@ static void php_sapi_phpdbg_register_vars(zval *track_vars_array TSRMLS_DC) /* {
static inline int php_sapi_phpdbg_ub_write(const char *message, unsigned int length TSRMLS_DC) /* {{{ */
{
return phpdbg_write(message);
return phpdbg_write("%s", message);
} /* }}} */
static inline void php_sapi_phpdbg_flush(void *context) /* {{{ */
+7 -5
View File
@@ -172,11 +172,13 @@ PHPDBG_INFO(literal) /* {{{ */
}
while (literal < ops->last_literal) {
phpdbg_write("|-------- C%lu -------> [", literal);
zend_print_zval(
&ops->literals[literal].constant, 0);
phpdbg_write("]");
phpdbg_writeln(EMPTY);
if (Z_TYPE(ops->literals[literal].constant) != IS_NULL) {
phpdbg_write("|-------- C%lu -------> [", literal);
zend_print_zval(
&ops->literals[literal].constant, 0);
phpdbg_write("]");
phpdbg_writeln(EMPTY);
}
literal++;
}
} else {